Update codegen/link_section.rs.

This commit is contained in:
Austin Hicks
2016-09-24 21:56:26 -04:00
parent 12ff05fc50
commit f2f7ace213

View File

@@ -22,12 +22,12 @@ pub enum E {
B(f32) B(f32)
} }
// CHECK: @VAR2 = constant {{.*}} { i32 0, i32 666, {{.*}} }, section ".test_two" // CHECK: @VAR2 = constant {{.*}} { i32 0, i32 666 }, section ".test_two"
#[no_mangle] #[no_mangle]
#[link_section = ".test_two"] #[link_section = ".test_two"]
pub static VAR2: E = E::A(666); pub static VAR2: E = E::A(666);
// CHECK: @VAR3 = constant {{.*}} { i32 1, float 1.000000e+00, {{.*}} }, section ".test_three" // CHECK: @VAR3 = constant {{.*}} { i32 1, float 1.000000e+00 }, section ".test_three"
#[no_mangle] #[no_mangle]
#[link_section = ".test_three"] #[link_section = ".test_three"]
pub static VAR3: E = E::B(1.); pub static VAR3: E = E::B(1.);