File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,13 @@ impl Invert for i64 {
55
55
}
56
56
}
57
57
58
- // CHECK-LABEL: generic_function
59
58
// CHECK: .balign 4
59
+ // CHECK-LABEL: generic_function:
60
60
// CHECK: call
61
61
// CHECK: ret
62
62
63
63
#[ naked]
64
+ #[ no_mangle]
64
65
pub extern "C" fn generic_function < T : Invert > ( x : i64 ) -> i64 {
65
66
unsafe {
66
67
naked_asm ! (
@@ -75,8 +76,8 @@ pub extern "C" fn generic_function<T: Invert>(x: i64) -> i64 {
75
76
#[ repr( transparent) ]
76
77
struct Foo ( u64 ) ;
77
78
78
- // CHECK-LABEL: method
79
79
// CHECK: .balign 4
80
+ // CHECK-LABEL: method:
80
81
// CHECK: mov rax, rdi
81
82
82
83
impl Foo {
@@ -87,8 +88,8 @@ impl Foo {
87
88
}
88
89
}
89
90
90
- // CHECK-LABEL: trait_method
91
91
// CHECK: .balign 4
92
+ // CHECK-LABEL: trait_method:
92
93
// CHECK: mov rax, rdi
93
94
94
95
trait Bar {
@@ -103,8 +104,8 @@ impl Bar for Foo {
103
104
}
104
105
}
105
106
106
- // CHECK-LABEL: naked_with_args_and_return
107
107
// CHECK: .balign 4
108
+ // CHECK-LABEL: naked_with_args_and_return:
108
109
// CHECK: lea rax, [rdi + rsi]
109
110
110
111
// this previously ICE'd, see https://github.com/rust-lang/rust/issues/124375
You can’t perform that action at this time.
0 commit comments