We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4310bbd commit affe23bCopy full SHA for affe23b
tests/run/asm.rs
@@ -3,11 +3,12 @@
3
// Run-time:
4
// status: 0
5
6
-#![feature(asm_const, asm_sym)]
+#![feature(asm_const)]
7
8
use std::arch::{asm, global_asm};
9
10
-global_asm!("
+global_asm!(
11
+ "
12
.global add_asm
13
add_asm:
14
mov rax, rdi
@@ -132,7 +133,9 @@ fn main() {
132
133
assert_eq!(x, 43);
134
135
// check sym fn
- extern "C" fn foo() -> u64 { 42 }
136
+ extern "C" fn foo() -> u64 {
137
+ 42
138
+ }
139
let x: u64;
140
unsafe {
141
asm!("call {}", sym foo, lateout("rax") x);
0 commit comments