diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2022-02-25 19:24:59 -0500 | 
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2022-02-25 19:24:59 -0500 | 
| commit | 945276c92076ea82747b4c8d0b19206c2940e7d8 (patch) | |
| tree | 93e68f5bb7617e2718d70de27ae13d247d688b44 /src/test/codegen/function-arguments-noopt.rs | |
| parent | b0921f8a0dc50f65ad561ca94da1c09dd5ee293b (diff) | |
| download | rust-945276c92076ea82747b4c8d0b19206c2940e7d8.tar.gz rust-945276c92076ea82747b4c8d0b19206c2940e7d8.zip | |
avoid test failure on targets where all functions are dso_local (e.g. wasm)
Diffstat (limited to 'src/test/codegen/function-arguments-noopt.rs')
| -rw-r--r-- | src/test/codegen/function-arguments-noopt.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/test/codegen/function-arguments-noopt.rs b/src/test/codegen/function-arguments-noopt.rs index 1d740a4b329..94561288dc5 100644 --- a/src/test/codegen/function-arguments-noopt.rs +++ b/src/test/codegen/function-arguments-noopt.rs @@ -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 @@ -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 @@ -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 @@ -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 | 
