https://gcc.gnu.org/g:af74733fa97de1195f45ef5b1727cb933d736255

commit af74733fa97de1195f45ef5b1727cb933d736255
Author: jjasmine <tanghocle...@gmail.com>
Date:   Tue May 21 17:48:30 2024 -0700

    Add a simple no-op test for asm!
    
    gcc/testsuite/ChangeLog:
    
            * rust/compile/inline_asm_nop.rs: Simple test for asm!

Diff:
---
 gcc/testsuite/rust/compile/inline_asm_nop.rs | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gcc/testsuite/rust/compile/inline_asm_nop.rs 
b/gcc/testsuite/rust/compile/inline_asm_nop.rs
new file mode 100644
index 000000000000..ffe3161cd73c
--- /dev/null
+++ b/gcc/testsuite/rust/compile/inline_asm_nop.rs
@@ -0,0 +1,10 @@
+#![feature(rustc_attrs)]
+
+#[rustc_builtin_macro]
+macro_rules! asm {
+    () => {}
+}
+
+fn main() {
+    asm!("nop");
+}

Reply via email to