crashes: add test for #131451
This commit is contained in:
parent
f415c07494
commit
159ed85d24
1 changed files with 9 additions and 0 deletions
9
tests/crashes/131451.rs
Normal file
9
tests/crashes/131451.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
//@ known-bug: #131451
|
||||
//@ needs-rustc-debug-assertions
|
||||
//@ compile-flags: -Zmir-enable-passes=+GVN -Zmir-enable-passes=+JumpThreading --crate-type=lib
|
||||
|
||||
pub fn fun(terminate: bool) {
|
||||
while true {}
|
||||
|
||||
while !terminate {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue