[COMMITTED 03/41] gccrs: testsuite: Add test case for macro missing body

arthur.cohen@embecosm.com arthur.cohen@embecosm.com
Fri Mar 20 17:29:52 GMT 2026


From: Harishankar <harishankarpp7@gmail.com>

Fixes Rust-GCC/gccrs#4413

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4413.rs: New test.

Signed-off-by: Harishankar <harishankarpp7@gmail.com>
---
 gcc/testsuite/rust/compile/issue-4413.rs | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/issue-4413.rs

diff --git a/gcc/testsuite/rust/compile/issue-4413.rs b/gcc/testsuite/rust/compile/issue-4413.rs
new file mode 100644
index 00000000000..c5b80fdae29
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-4413.rs
@@ -0,0 +1,8 @@
+#![feature(no_core)]
+#![no_core]
+
+fn main() {
+    match money {
+        v => println!  
+    } // { dg-error "unexpected token .* - expecting delimiters" }
+}
\ No newline at end of file
-- 
2.50.1



More information about the Gcc-rust mailing list