diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-05-21 17:54:57 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:38 +0100 |
commit | f5c832e2f75d72b04fe84f7c5edd4d0351bfdb18 (patch) | |
tree | 4e0cf008e6f94960f41eef9d045815d4ec42ecfc | |
parent | d273b3a78a1be44d5d1934ea40892835b12d5830 (diff) | |
download | gcc-f5c832e2f75d72b04fe84f7c5edd4d0351bfdb18.zip gcc-f5c832e2f75d72b04fe84f7c5edd4d0351bfdb18.tar.gz gcc-f5c832e2f75d72b04fe84f7c5edd4d0351bfdb18.tar.bz2 |
gccrs: Top level parsing test for asm!
gcc/testsuite/ChangeLog:
* rust/compile/inline_asm_ident_first.rs: New test.
-rw-r--r-- | gcc/testsuite/rust/compile/inline_asm_ident_first.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/inline_asm_ident_first.rs b/gcc/testsuite/rust/compile/inline_asm_ident_first.rs new file mode 100644 index 0000000..9a4eb7e --- /dev/null +++ b/gcc/testsuite/rust/compile/inline_asm_ident_first.rs @@ -0,0 +1,10 @@ +#![feature(rustc_attrs)] + +#[rustc_builtin_macro] +macro_rules! asm { + () => {} +} + +fn main() { + asm!(i_am_a_dummy); // { dg-error "asm template must be a string literal" } +}
\ No newline at end of file |