Skip to content

Commit

Permalink
avoid test failure on targets where all functions are dso_local (e.g.…
Browse files Browse the repository at this point in the history
… wasm)
  • Loading branch information
erikdesjardins committed Feb 26, 2022
1 parent b0921f8 commit 945276c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/codegen/function-arguments-noopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct S {
_field: [i32; 8],
}

// CHECK: define zeroext i1 @boolean(i1 zeroext %x)
// CHECK: zeroext i1 @boolean(i1 zeroext %x)
#[no_mangle]
pub fn boolean(x: bool) -> bool {
x
Expand All @@ -23,7 +23,7 @@ pub fn boolean_call(x: bool, f: fn(bool) -> bool) -> bool {
f(x)
}

// CHECK: define align 4 i32* @borrow(i32* align 4 %x)
// CHECK: align 4 i32* @borrow(i32* align 4 %x)
#[no_mangle]
pub fn borrow(x: &i32) -> &i32 {
x
Expand All @@ -36,7 +36,7 @@ pub fn borrow_call(x: &i32, f: fn(&i32) -> &i32) -> &i32 {
f(x)
}

// CHECK: define void @struct_(%S* sret(%S){{( %0)?}}, %S* %x)
// CHECK: void @struct_(%S* sret(%S){{( %0)?}}, %S* %x)
#[no_mangle]
pub fn struct_(x: S) -> S {
x
Expand All @@ -49,7 +49,7 @@ pub fn struct_call(x: S, f: fn(S) -> S) -> S {
f(x)
}

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

0 comments on commit 945276c

Please sign in to comment.