diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-04-26 09:18:19 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2018-05-11 13:01:44 +0200 |
| commit | fdd9787777dac5db6bd555df08038e3c191999e4 (patch) | |
| tree | c69aed643a634de3d037ce9ea53be02c92c992fb /src/test/codegen/link_section.rs | |
| parent | 41707d8df9a441e19387a4a61415ee0af58a9e48 (diff) | |
| download | rust-fdd9787777dac5db6bd555df08038e3c191999e4.tar.gz rust-fdd9787777dac5db6bd555df08038e3c191999e4.zip | |
Introduce ConstValue and use it instead of miri's Value for constant values
Diffstat (limited to 'src/test/codegen/link_section.rs')
| -rw-r--r-- | src/test/codegen/link_section.rs | 8 |
1 files changed, 1 insertions, 7 deletions
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) |
