Skip to content

Commit

Permalink
Unrolled build for rust-lang#133104
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#133104 - matthiaskrgr:crashtest_debugass_131451.rs, r=saethlin

crashes: add test for rust-lang#131451

r? `@saethlin`
How do I find out which mir opts are involved here? 😅
  • Loading branch information
rust-timer authored Dec 8, 2024
2 parents f415c07 + 159ed85 commit 45eba90
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 45eba90

Please sign in to comment.