about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2022-10-17 22:38:37 +0100
committerAntoni Boucher <bouanto@zoho.com>2023-02-28 19:18:41 -0500
commitaffe23bc3bf80ab00e3b32fea628846455028f48 (patch)
tree90f686d3970dec98187a1f1eaf1ee589d3334505
parent4310bbdfa6bdd2fa5ebbd9cd32c850ee12bcd0a2 (diff)
downloadrust-affe23bc3bf80ab00e3b32fea628846455028f48.tar.gz
rust-affe23bc3bf80ab00e3b32fea628846455028f48.zip
Stabilize asm_sym
-rw-r--r--tests/run/asm.rs9
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);