From: Jakub Dupak Date: Thu, 5 Oct 2023 12:52:24 +0000 (+0200) Subject: gccrs: Add test for parser bug X-Git-Tag: basepoints/gcc-15~2110 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c20d7924f1515c99def98935bdf31d269eab6856;p=thirdparty%2Fgcc.git gccrs: Add test for parser bug gcc/testsuite/ChangeLog: * rust/compile/issue-2645.rs: New test. Signed-off-by: Jakub Dupak --- 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 +}