From: Harishankar <[email protected]>
Fixes Rust-GCC/gccrs#4413
gcc/testsuite/ChangeLog:
* rust/compile/issue-4413.rs: New test.
Signed-off-by: Harishankar <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/54f67ebc365d0f705475c0fb004dfd905f171885
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4449
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 000000000..c5b80fdae
--- /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
base-commit: 461ab85753c6eadfd16565ba3422f44fc80b0190
--
2.52.0