about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2022-10-17 22:38:37 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2022-10-17 22:38:37 +0100
commit430bd6200dd290497423c5f3a1f9ee4e9bd35d67 (patch)
tree6dfd2892bd2ab12d972f05174b5fd1fd9f5702fa /compiler/rustc_codegen_gcc
parent6b3ede3f7bc502eba7bbd202b4b9312d812adcd7 (diff)
downloadrust-430bd6200dd290497423c5f3a1f9ee4e9bd35d67.tar.gz
rust-430bd6200dd290497423c5f3a1f9ee4e9bd35d67.zip
Stabilize asm_sym
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/tests/run/asm.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_gcc/tests/run/asm.rs b/compiler/rustc_codegen_gcc/tests/run/asm.rs
index 46abbb553bf..38c1eac7adf 100644
--- a/compiler/rustc_codegen_gcc/tests/run/asm.rs
+++ b/compiler/rustc_codegen_gcc/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);