1 // compile-flags: -C no-prepopulate-passes
5 // CHECK: @VAR1 = constant <{ [4 x i8] }> <{ [4 x i8] c"\01\00\00\00" }>, section ".test_one"
7 #[link_section = ".test_one"]
8 #[cfg(target_endian = "little")]
9 pub static VAR1: u32 = 1;
12 #[link_section = ".test_one"]
13 #[cfg(target_endian = "big")]
14 pub static VAR1: u32 = 0x01000000;
21 // CHECK: @VAR2 = constant {{.*}}, section ".test_two"
23 #[link_section = ".test_two"]
24 pub static VAR2: E = E::A(666);
26 // CHECK: @VAR3 = constant {{.*}}, section ".test_three"
28 #[link_section = ".test_three"]
29 pub static VAR3: E = E::B(1.);
31 // CHECK: define void @fn1() {{.*}} section ".test_four" {
33 #[link_section = ".test_four"]