Skip to content

Commit

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

crashes: add test for #131451

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

Please sign in to comment.