crashes: add test for #131451

This commit is contained in:
Matthias Krüger 2024-11-16 13:32:13 +01:00
parent f415c07494
commit 159ed85d24

9
tests/crashes/131451.rs Normal file
View 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 {}
}