From 68d29554a8bf100d1a6c95eefb4cd258b4fd1605 Mon Sep 17 00:00:00 2001 From: Smitty Date: Mon, 3 May 2021 09:56:51 -0400 Subject: [PATCH] test for infinite value in f*_fast --- tests/compile-fail/fast_math_second.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compile-fail/fast_math_second.rs b/tests/compile-fail/fast_math_second.rs index 114197d75793..e8d70a4a79e7 100644 --- a/tests/compile-fail/fast_math_second.rs +++ b/tests/compile-fail/fast_math_second.rs @@ -2,6 +2,6 @@ fn main() { unsafe { - let _x: f32 = core::intrinsics::fmul_fast(3.4f32, f32::NAN); //~ ERROR `fmul_fast` intrinsic called with non-finite value as second parameter + let _x: f32 = core::intrinsics::fmul_fast(3.4f32, f32::INFINITY); //~ ERROR `fmul_fast` intrinsic called with non-finite value as second parameter } }