Skip to content

Commit dab317f

Browse files
author
dragan.mladjenovic
committed
Small nits to make couple of tests pass on mips targets.
1 parent 5d7f892 commit dab317f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/test/codegen/link_section.rs

+6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@
1515
// CHECK: @VAR1 = constant <{ [4 x i8] }> <{ [4 x i8] c"\01\00\00\00" }>, section ".test_one"
1616
#[no_mangle]
1717
#[link_section = ".test_one"]
18+
#[cfg(target_endian = "little")]
1819
pub static VAR1: u32 = 1;
1920

21+
#[no_mangle]
22+
#[link_section = ".test_one"]
23+
#[cfg(target_endian = "big")]
24+
pub static VAR1: u32 = 0x01000000;
25+
2026
pub enum E {
2127
A(u32),
2228
B(f32)

src/test/ui/asm-out-assign-imm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// ignore-emscripten
1313
// ignore-powerpc
1414
// ignore-sparc
15+
// ignore-mips
1516

1617
#![feature(asm)]
1718

src/test/ui/target-feature-wrong.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// ignore-aarch64
1313
// ignore-wasm
1414
// ignore-emscripten
15+
// ignore-mips
1516

1617
#![feature(target_feature)]
1718

0 commit comments

Comments
 (0)