From fdd9787777dac5db6bd555df08038e3c191999e4 Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Thu, 26 Apr 2018 09:18:19 +0200 Subject: Introduce ConstValue and use it instead of miri's Value for constant values --- src/test/codegen/link_section.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/test/codegen') diff --git a/src/test/codegen/link_section.rs b/src/test/codegen/link_section.rs index 415ee6eb7ea..1879002e7f3 100644 --- a/src/test/codegen/link_section.rs +++ b/src/test/codegen/link_section.rs @@ -12,17 +12,11 @@ #![crate_type = "lib"] -// CHECK: @VAR1 = constant <{ [4 x i8] }> <{ [4 x i8] c"\01\00\00\00" }>, section ".test_one" +// CHECK: @VAR1 = constant i32 1, section ".test_one" #[no_mangle] #[link_section = ".test_one"] -#[cfg(target_endian = "little")] pub static VAR1: u32 = 1; -#[no_mangle] -#[link_section = ".test_one"] -#[cfg(target_endian = "big")] -pub static VAR1: u32 = 0x01000000; - pub enum E { A(u32), B(f32) -- cgit 1.4.1-3-g733a5