Skip to content

Commit 66e95b1

Browse files
committed
Fix: moved #[no_mangle]
1 parent 7095dff commit 66e95b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/assembly/asm/s390x-types.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extern "Rust" {
4949
}
5050

5151
macro_rules! check { ($func:ident, $ty:ty, $class:ident, $mov:literal) => {
52-
52+
#[no_mangle]
5353
pub unsafe fn $func(x: $ty) -> $ty {
5454
dont_merge(stringify!(func));
5555

@@ -75,7 +75,6 @@ macro_rules! check_reg { ($func:ident, $ty:ty, $reg:tt, $mov:literal) => {
7575
// systemz: brasl %r14, extern_func@PLT
7676
// systemz: #NO_APP
7777
#[cfg(s390x)]
78-
#[no_mangle]
7978
pub unsafe fn sym_fn_32() {
8079
asm!("brasl %r14, {}", sym extern_func);
8180
}
@@ -84,5 +83,4 @@ pub unsafe fn sym_fn_32() {
8483
// CHECK: #APP
8584
// CHECK: lgr r{{[0-15]+}}, r{{[0-15]+}}
8685
// CHECK: #NO_APP
87-
#[no_mangle]
8886
check!(reg_i32, i32, reg, "lgr");

0 commit comments

Comments
 (0)