From: jjasmine Date: Wed, 22 May 2024 00:54:57 +0000 (-0700) Subject: gccrs: Top level parsing test for asm! X-Git-Tag: basepoints/gcc-16~1380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5c832e2f75d72b04fe84f7c5edd4d0351bfdb18;p=thirdparty%2Fgcc.git gccrs: Top level parsing test for asm! gcc/testsuite/ChangeLog: * rust/compile/inline_asm_ident_first.rs: New test. --- 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 00000000000..9a4eb7ee402 --- /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