Skip to content

Commit

Permalink
gccrs: Add test case to show ICE is fixed
Browse files Browse the repository at this point in the history
This was resolved in: 18422c9 which was missing the name
resolution step for unit-types.

Fixes #2203

gcc/testsuite/ChangeLog:

	* rust/compile/nr2/exclude:
	* rust/compile/issue-2203.rs: New test.

Signed-off-by: Philip Herron <[email protected]>
  • Loading branch information
philberty committed Oct 2, 2024
1 parent 409beeb commit ad1c8b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcc/testsuite/rust/compile/issue-2203.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
trait A {}

impl A for () {}
1 change: 1 addition & 0 deletions gcc/testsuite/rust/compile/nr2/exclude
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,4 @@ issue-3139-2.rs
issue-3139-3.rs
issue-3036.rs
issue-2951.rs
issue-2203.rs

0 comments on commit ad1c8b1

Please sign in to comment.