4 // compile-flags: -C codegen-units=3
6 // Test references to static items across compilation units.
9 fn pad() -> usize { 0 }
14 // Separate compilation always switches to the LLVM module with the fewest
15 // instructions. Make sure we have some instructions in this module so
16 // that `a` and `b` don't go into the same compilation unit.
17 fn pad() -> usize { 0 }
19 pub static THREE: usize = ::ONE + ::a::TWO;
23 fn pad() -> usize { 0 }
25 pub const TWO: usize = ::ONE + ::ONE;
30 assert_eq!(a::TWO, 2);
31 assert_eq!(b::THREE, 3);