mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
9 lines
241 B
Rust
9 lines
241 B
Rust
//@ run-pass
|
|
//@ compile-flags: -O -Zmir-opt-level=3 -Cno-prepopulate-passes
|
|
|
|
// Regression test for a broken MIR optimization (issue #113407).
|
|
pub fn main() {
|
|
let f = f64::from_bits(0x19873cc2) as f32;
|
|
assert_eq!(f.to_bits(), 0);
|
|
}
|