]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_codegen_gcc/tests/run/asm.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / compiler / rustc_codegen_gcc / tests / run / asm.rs
index 46abbb553bf2f6e257d61bc39e399161a5654553..38c1eac7adf6966c9d8b6d88ce0df853ed4152b7 100644 (file)
@@ -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);