aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjjasmine <tanghocle456@gmail.com>2024-05-21 17:48:30 -0700
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-17 16:35:38 +0100
commitd273b3a78a1be44d5d1934ea40892835b12d5830 (patch)
tree6f7987b5ecabeaddc96e74bcd4b391ab8839016c /gcc
parent7f6fd8db4879f93680d2611cbd9e5f26bb4bcfb7 (diff)
downloadgcc-d273b3a78a1be44d5d1934ea40892835b12d5830.zip
gcc-d273b3a78a1be44d5d1934ea40892835b12d5830.tar.gz
gcc-d273b3a78a1be44d5d1934ea40892835b12d5830.tar.bz2
gccrs: Add a simple no-op test for asm!
gcc/testsuite/ChangeLog: * rust/compile/inline_asm_nop.rs: Simple test for asm!
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/inline_asm_nop.rs10
1 files changed, 10 insertions, 0 deletions
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 0000000..ffe3161
--- /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");
+}