Skip to content

Commit 945276c

Browse files
avoid test failure on targets where all functions are dso_local (e.g. wasm)
1 parent b0921f8 commit 945276c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/codegen/function-arguments-noopt.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct S {
1010
_field: [i32; 8],
1111
}
1212

13-
// CHECK: define zeroext i1 @boolean(i1 zeroext %x)
13+
// CHECK: zeroext i1 @boolean(i1 zeroext %x)
1414
#[no_mangle]
1515
pub fn boolean(x: bool) -> bool {
1616
x
@@ -23,7 +23,7 @@ pub fn boolean_call(x: bool, f: fn(bool) -> bool) -> bool {
2323
f(x)
2424
}
2525

26-
// CHECK: define align 4 i32* @borrow(i32* align 4 %x)
26+
// CHECK: align 4 i32* @borrow(i32* align 4 %x)
2727
#[no_mangle]
2828
pub fn borrow(x: &i32) -> &i32 {
2929
x
@@ -36,7 +36,7 @@ pub fn borrow_call(x: &i32, f: fn(&i32) -> &i32) -> &i32 {
3636
f(x)
3737
}
3838

39-
// CHECK: define void @struct_(%S* sret(%S){{( %0)?}}, %S* %x)
39+
// CHECK: void @struct_(%S* sret(%S){{( %0)?}}, %S* %x)
4040
#[no_mangle]
4141
pub fn struct_(x: S) -> S {
4242
x
@@ -49,7 +49,7 @@ pub fn struct_call(x: S, f: fn(S) -> S) -> S {
4949
f(x)
5050
}
5151

52-
// CHECK: define { i8, i8 } @enum_(i1 zeroext %x.0, i8 %x.1)
52+
// CHECK: { i8, i8 } @enum_(i1 zeroext %x.0, i8 %x.1)
5353
#[no_mangle]
5454
pub fn enum_(x: Option<u8>) -> Option<u8> {
5555
x

0 commit comments

Comments
 (0)