aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjasmine <tanghocle456@gmail.com>2024-05-21 17:54:57 -0700
committerCohenArthur <arthur.cohen@embecosm.com>2024-06-13 15:31:07 +0000
commit2822845b16c2545c01a28328b81b642631d3e165 (patch)
treedd99fe4ba257d7c6a36786b92cdde9050fee54d4
parentaf74733fa97de1195f45ef5b1727cb933d736255 (diff)
downloadgcc-2822845b16c2545c01a28328b81b642631d3e165.zip
gcc-2822845b16c2545c01a28328b81b642631d3e165.tar.gz
gcc-2822845b16c2545c01a28328b81b642631d3e165.tar.bz2
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.rs10
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