From 007166ca6ceecd429f7033336af25dd679424ca2 Mon Sep 17 00:00:00 2001 From: Jakub Dupak Date: Thu, 5 Oct 2023 14:52:24 +0200 Subject: [PATCH] Add test for parser bug gcc/testsuite/ChangeLog: * rust/compile/issue-2645.rs: New test. Signed-off-by: Jakub Dupak --- gcc/testsuite/rust/compile/issue-2645.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 gcc/testsuite/rust/compile/issue-2645.rs diff --git a/gcc/testsuite/rust/compile/issue-2645.rs b/gcc/testsuite/rust/compile/issue-2645.rs new file mode 100644 index 000000000000..ef1403de1a78 --- /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 +}