rust/tests/fail/fast_math_both.rs
2022-06-01 10:53:38 -04:00

8 lines
214 B
Rust

#![feature(core_intrinsics)]
fn main() {
unsafe {
let _x: f32 = core::intrinsics::fsub_fast(f32::NAN, f32::NAN); //~ ERROR `fsub_fast` intrinsic called with non-finite value as both parameters
}
}