Skip to content

Commit

Permalink
crashes: add test for rust-lang#131451
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Dec 8, 2024
1 parent f415c07 commit 159ed85
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/crashes/131451.rs
Original file line number Diff line number Diff line change
@@ -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 {}
}

0 comments on commit 159ed85

Please sign in to comment.