1 // ignore-emscripten default visibility is hidden
2 // compile-flags: -C no-prepopulate-passes
6 // CHECK: @VAR1 = constant <{ [4 x i8] }> <{ [4 x i8] c"\01\00\00\00" }>, section ".test_one"
8 #[link_section = ".test_one"]
9 #[cfg(target_endian = "little")]
10 pub static VAR1: u32 = 1;
13 #[link_section = ".test_one"]
14 #[cfg(target_endian = "big")]
15 pub static VAR1: u32 = 0x01000000;
22 // CHECK: @VAR2 = constant {{.*}}, section ".test_two"
24 #[link_section = ".test_two"]
25 pub static VAR2: E = E::A(666);
27 // CHECK: @VAR3 = constant {{.*}}, section ".test_three"
29 #[link_section = ".test_three"]
30 pub static VAR3: E = E::B(1.);
32 // CHECK: define void @fn1() {{.*}} section ".test_four" {
34 #[link_section = ".test_four"]