[gcc r14-8029] gccrs: Add test for parser bug
Arthur Cohen
cohenarthur@gcc.gnu.org
Tue Jan 16 18:14:53 GMT 2024
https://gcc.gnu.org/g:c20d7924f1515c99def98935bdf31d269eab6856
commit r14-8029-gc20d7924f1515c99def98935bdf31d269eab6856
Author: Jakub Dupak <dev@jakubdupak.com>
Date: Thu Oct 5 14:52:24 2023 +0200
gccrs: Add test for parser bug
gcc/testsuite/ChangeLog:
* rust/compile/issue-2645.rs: New test.
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Diff:
---
gcc/testsuite/rust/compile/issue-2645.rs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/rust/compile/issue-2645.rs b/gcc/testsuite/rust/compile/issue-2645.rs
new file mode 100644
index 00000000000..ef1403de1a7
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-2645.rs
@@ -0,0 +1,4 @@
+// { dg-additional-options "-frust-compile-until=ast" }
+pub fn struct_tuple(A { 0: a, 1: ref b }: A) -> i32 {
+ a
+}
More information about the Gcc-cvs
mailing list