diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2022-10-17 22:38:37 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-10-17 22:38:37 +0100 |
| commit | 14e0e0fec386d42a8d980c63dd4ff3c11f6eeaf0 (patch) | |
| tree | 2e1684cb7c916e7cba6d08016aebfe7a24af026a | |
| parent | 413edf67713195ebbf57ba50aac84e9387559bbe (diff) | |
| download | rust-14e0e0fec386d42a8d980c63dd4ff3c11f6eeaf0.tar.gz rust-14e0e0fec386d42a8d980c63dd4ff3c11f6eeaf0.zip | |
Stabilize asm_sym
| -rw-r--r-- | tests/run/asm.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/run/asm.rs b/tests/run/asm.rs index 46abbb553bf..38c1eac7adf 100644 --- a/tests/run/asm.rs +++ b/tests/run/asm.rs @@ -3,11 +3,12 @@ // Run-time: // status: 0 -#![feature(asm_const, asm_sym)] +#![feature(asm_const)] use std::arch::{asm, global_asm}; -global_asm!(" +global_asm!( + " .global add_asm add_asm: mov rax, rdi @@ -132,7 +133,9 @@ fn main() { assert_eq!(x, 43); // check sym fn - extern "C" fn foo() -> u64 { 42 } + extern "C" fn foo() -> u64 { + 42 + } let x: u64; unsafe { asm!("call {}", sym foo, lateout("rax") x); |
