rust/tests/crashes/131227.rs
2024-10-09 15:34:45 +02:00

17 lines
216 B
Rust

//@ known-bug: #131227
//@ compile-flags: -Zmir-opt-level=3
static mut G: () = ();
fn myfunc() -> i32 {
let var = &raw mut G;
if var.is_null() {
return 0;
}
0
}
fn main() {
myfunc();
}