Skip to content

Commit 6fca409

Browse files
committed
crashes: add test for #131451
1 parent 46e8d20 commit 6fca409

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/crashes/131451.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ known-bug: #131451
2+
//@ needs-rustc-debug-assertions
3+
//@ compile-flags: -Zmir-opt-level=5 -Zvalidate-mir
4+
5+
fn check_multiple_lints_3(terminate: bool) {
6+
while true {}
7+
8+
while !terminate {}
9+
}

0 commit comments

Comments
 (0)