]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add test for parser bug
authorJakub Dupak <dev@jakubdupak.com>
Thu, 5 Oct 2023 12:52:24 +0000 (14:52 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:04:38 +0000 (19:04 +0100)
gcc/testsuite/ChangeLog:

* rust/compile/issue-2645.rs: New test.

Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
gcc/testsuite/rust/compile/issue-2645.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/issue-2645.rs b/gcc/testsuite/rust/compile/issue-2645.rs
new file mode 100644 (file)
index 0000000..ef1403d
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-additional-options "-frust-compile-until=ast" }
+pub fn struct_tuple(A { 0: a, 1: ref b }: A) -> i32 {
+    a
+}