diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-05-21 17:48:30 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:38 +0100 |
commit | d273b3a78a1be44d5d1934ea40892835b12d5830 (patch) | |
tree | 6f7987b5ecabeaddc96e74bcd4b391ab8839016c /gcc | |
parent | 7f6fd8db4879f93680d2611cbd9e5f26bb4bcfb7 (diff) | |
download | gcc-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.rs | 10 |
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"); +} |