https://gcc.gnu.org/g:f5c832e2f75d72b04fe84f7c5edd4d0351bfdb18

commit r15-8173-gf5c832e2f75d72b04fe84f7c5edd4d0351bfdb18
Author: jjasmine <tanghocle...@gmail.com>
Date:   Tue May 21 17:54:57 2024 -0700

    gccrs: 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

Reply via email to