https://gcc.gnu.org/g:2822845b16c2545c01a28328b81b642631d3e165
commit 2822845b16c2545c01a28328b81b642631d3e165 Author: jjasmine <tanghocle...@gmail.com> Date: Tue May 21 17:54:57 2024 -0700 Top level parsing test for asm! gcc/testsuite/ChangeLog: * rust/compile/inline_asm_ident_first.rs: New test. Diff: --- gcc/testsuite/rust/compile/inline_asm_ident_first.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 000000000000..9a4eb7ee4024 --- /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