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