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

fn main() {
    unsafe {
        let _x: f32 = core::intrinsics::frem_fast(f32::NAN, 3.2); //~ ERROR: `frem_fast` intrinsic called with non-finite value as first parameter
    }
}