diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-05-21 18:06:30 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-06-13 15:31:07 +0000 |
commit | a4fe2a1016a8ebfd0d7a3b139f50b7b4fa258e6c (patch) | |
tree | c3ca431bbf8a8781975217860be43732ebd60b1b /gcc | |
parent | 2822845b16c2545c01a28328b81b642631d3e165 (diff) | |
download | gcc-a4fe2a1016a8ebfd0d7a3b139f50b7b4fa258e6c.zip gcc-a4fe2a1016a8ebfd0d7a3b139f50b7b4fa258e6c.tar.gz gcc-a4fe2a1016a8ebfd0d7a3b139f50b7b4fa258e6c.tar.bz2 |
Add tests parsing with trailing commas inline asm
gcc/testsuite/ChangeLog:
* rust/compile/inline_asm_nop_2.rs: New test.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/compile/inline_asm_nop_2.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/inline_asm_nop_2.rs b/gcc/testsuite/rust/compile/inline_asm_nop_2.rs new file mode 100644 index 0000000..8437e8f --- /dev/null +++ b/gcc/testsuite/rust/compile/inline_asm_nop_2.rs @@ -0,0 +1,10 @@ +#![feature(rustc_attrs)] + +#[rustc_builtin_macro] +macro_rules! asm { + () => {} +} + +fn main() { + asm!("nop",); +} |