Skip to content

Commit 14e0e0f

Browse files
committed
Stabilize asm_sym
1 parent 413edf6 commit 14e0e0f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/run/asm.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
// Run-time:
44
// status: 0
55

6-
#![feature(asm_const, asm_sym)]
6+
#![feature(asm_const)]
77

88
use std::arch::{asm, global_asm};
99

10-
global_asm!("
10+
global_asm!(
11+
"
1112
.global add_asm
1213
add_asm:
1314
mov rax, rdi
@@ -132,7 +133,9 @@ fn main() {
132133
assert_eq!(x, 43);
133134

134135
// check sym fn
135-
extern "C" fn foo() -> u64 { 42 }
136+
extern "C" fn foo() -> u64 {
137+
42
138+
}
136139
let x: u64;
137140
unsafe {
138141
asm!("call {}", sym foo, lateout("rax") x);

0 commit comments

Comments
 (0)