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)

View File

@ -12,6 +12,7 @@
// ignore-emscripten
// ignore-powerpc
// ignore-sparc
// ignore-mips
#![feature(asm)]

View File

@ -12,6 +12,7 @@
// ignore-aarch64
// ignore-wasm
// ignore-emscripten
// ignore-mips
#![feature(target_feature)]