mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
17 lines
216 B
Rust
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();
|
|
}
|