diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-05-21 18:06:30 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:38 +0100 |
commit | 68a0a2cd79c88a9c1b243e69558b30c6af8ff918 (patch) | |
tree | 8b3beb44f0d76dab938a90626bf7c1415173e336 /gcc | |
parent | f5c832e2f75d72b04fe84f7c5edd4d0351bfdb18 (diff) | |
download | gcc-68a0a2cd79c88a9c1b243e69558b30c6af8ff918.zip gcc-68a0a2cd79c88a9c1b243e69558b30c6af8ff918.tar.gz gcc-68a0a2cd79c88a9c1b243e69558b30c6af8ff918.tar.bz2 |
gccrs: 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",); +} |