/src/test/auxiliary/cross_crate_debuginfo_type_uniquing.rs

https://gitlab.com/pranith/rust · Rust · 26 lines · 9 code · 6 blank · 11 comment · 0 complexity · fae8da7497ef38ef642fc0e9285c10e8 MD5 · raw file

  1. // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
  2. // file at the top-level directory of this distribution and at
  3. // http://rust-lang.org/COPYRIGHT.
  4. //
  5. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  6. // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  7. // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  8. // option. This file may not be copied, modified, or distributed
  9. // except according to those terms.
  10. // no-prefer-dynamic
  11. #![crate_type = "rlib"]
  12. // compile-flags:-g
  13. struct S1;
  14. impl S1 {
  15. fn f(&mut self) { }
  16. }
  17. struct S2;
  18. impl S2 {
  19. fn f(&mut self) { }
  20. }