Skip to content

Commit dd19466

Browse files
bors[bot]dkm
andauthored
Merge #384
384: Fix dg-ice handling in rust testsuite r=tschwinge a=dkm Fix the pruning regex to also match ICE message and allow for dg-ice use. Add the test from #382 as a sample example. Should help #308 Co-authored-by: Marc Poulhiès <[email protected]>
2 parents ee5afc0 + de5d648 commit dd19466

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

gcc/testsuite/lib/rust.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ proc rust_target_compile { source dest type options } {
181181
## FIXME: until the compiler is made less verbose, we need to prune its output almost completely.
182182
# Only keep lines containing certain diagnostics so that we can check these.
183183
global additional_prunes
184-
lappend additional_prunes "^((?!(error: |warning: )).)*$"
184+
lappend additional_prunes "^((?!(error: |warning: |\[Ii\]nternal compiler error: )).)*$"
185185

186186
return [target_compile $source $dest $type $options]
187187
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() { // { dg-ice "#382" }
2+
unsafe {
3+
}
4+
}

0 commit comments

Comments
 (0)