about summary refs log tree commit diff
path: root/src/tools/miri/tests/fail/fast_math_second.rs
blob: 408c461077fc5fbec7342a98c7964b44ee682d38 (plain)
1
2
3
4
5
6
7
#![feature(core_intrinsics)]

fn main() {
    unsafe {
        let _x: f32 = core::intrinsics::fmul_fast(3.4f32, f32::INFINITY); //~ ERROR: `fmul_fast` intrinsic called with non-finite value as second parameter
    }
}