]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add a simple no-op test for asm!
authorjjasmine <tanghocle456@gmail.com>
Wed, 22 May 2024 00:48:30 +0000 (17:48 -0700)
committerCohenArthur <arthur.cohen@embecosm.com>
Thu, 13 Jun 2024 15:31:07 +0000 (15:31 +0000)
gcc/testsuite/ChangeLog:

* rust/compile/inline_asm_nop.rs: Simple test for asm!

gcc/testsuite/rust/compile/inline_asm_nop.rs [new file with mode: 0644]

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