From: jjasmine Date: Wed, 22 May 2024 00:54:57 +0000 (-0700) Subject: Top level parsing test for asm! X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2822845b16c2545c01a28328b81b642631d3e165;p=thirdparty%2Fgcc.git 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 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