diff options
| author | bors <bors@rust-lang.org> | 2018-05-12 01:48:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-05-12 01:48:11 +0000 |
| commit | c705877b1df780acfb2dcba4ebca6f30102dd8a2 (patch) | |
| tree | f495d89df72e13a4730d899d3172c0d3dd67bdb7 /src/test | |
| parent | 388df823e8deaea8150457cd3607d6c8cfc71ff1 (diff) | |
| parent | 0aa92acda7cb14c0040dcd346e5f015b6f36c352 (diff) | |
| download | rust-c705877b1df780acfb2dcba4ebca6f30102dd8a2.tar.gz rust-c705877b1df780acfb2dcba4ebca6f30102dd8a2.zip | |
Auto merge of #50249 - Zoxc:allocation-const, r=oli-obk
Introduce ConstValue and use it instead of miri's Value for constant values r? @oli-obk
Diffstat (limited to 'src/test')
| -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) |
