Small nits to make couple of tests pass on mips targets.

This commit is contained in:
dragan.mladjenovic 2018-04-03 16:40:05 +02:00
parent 5d7f892356
commit dab317f04f
3 changed files with 8 additions and 0 deletions

View file

@ -15,8 +15,14 @@
// CHECK: @VAR1 = constant <{ [4 x i8] }> <{ [4 x i8] c"\01\00\00\00" }>, 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)