Skip to content

Commit

Permalink
Add test for parser bug
Browse files Browse the repository at this point in the history
gcc/testsuite/ChangeLog:

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

Signed-off-by: Jakub Dupak <[email protected]>
  • Loading branch information
jdupak authored and P-E-P committed Oct 5, 2023
1 parent 10fd060 commit 007166c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcc/testsuite/rust/compile/issue-2645.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// { dg-additional-options "-frust-compile-until=ast" }
pub fn struct_tuple(A { 0: a, 1: ref b }: A) -> i32 {
a
}

0 comments on commit 007166c

Please sign in to comment.