aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Dupak <dev@jakubdupak.com>2023-10-05 14:52:24 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-10-05 14:02:18 +0000
commit007166ca6ceecd429f7033336af25dd679424ca2 (patch)
treee1483a0dd533f59f7243509fe60d5f9f37370d6a /gcc
parent10fd060d61fdbbf38e3f174f1409f60477c58755 (diff)
downloadgcc-007166ca6ceecd429f7033336af25dd679424ca2.zip
gcc-007166ca6ceecd429f7033336af25dd679424ca2.tar.gz
gcc-007166ca6ceecd429f7033336af25dd679424ca2.tar.bz2
Add test for parser bug
gcc/testsuite/ChangeLog: * rust/compile/issue-2645.rs: New test. Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/issue-2645.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/issue-2645.rs b/gcc/testsuite/rust/compile/issue-2645.rs
new file mode 100644
index 0000000..ef1403d
--- /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
+}