From ad1c8b1d45ef20e51acef313723bb5b12c58e457 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Wed, 2 Oct 2024 14:23:26 +0100 Subject: [PATCH] gccrs: Add test case to show ICE is fixed This was resolved in: 18422c9c386 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 --- gcc/testsuite/rust/compile/issue-2203.rs | 3 +++ gcc/testsuite/rust/compile/nr2/exclude | 1 + 2 files changed, 4 insertions(+) create mode 100644 gcc/testsuite/rust/compile/issue-2203.rs diff --git a/gcc/testsuite/rust/compile/issue-2203.rs b/gcc/testsuite/rust/compile/issue-2203.rs new file mode 100644 index 000000000000..961381d69f75 --- /dev/null +++ b/gcc/testsuite/rust/compile/issue-2203.rs @@ -0,0 +1,3 @@ +trait A {} + +impl A for () {} diff --git a/gcc/testsuite/rust/compile/nr2/exclude b/gcc/testsuite/rust/compile/nr2/exclude index c30af607edb4..e792462ba332 100644 --- a/gcc/testsuite/rust/compile/nr2/exclude +++ b/gcc/testsuite/rust/compile/nr2/exclude @@ -254,3 +254,4 @@ issue-3139-2.rs issue-3139-3.rs issue-3036.rs issue-2951.rs +issue-2203.rs \ No newline at end of file