File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,16 +279,19 @@ static void test7(const std::string& library) {
279279 " invalid output status ('" + std::to_string (s.status ) + " ')" );
280280 check (std::abs (E - std::acos (T)) < eps, " invalid output value" );
281281 }
282- #ifndef __INTEL_LLVM_COMPILER
283282 {
284283 constexpr auto T = real{-2 };
285284 auto s = OutputStatus{};
286285 s.status = 2 ;
287286 mp.fct (&s, &T, 1 , op);
288- check (s.status == -3 ,
289- " invalid output status ('" + std::to_string (s.status ) + " ')" );
287+ if constexpr (math_errhandling & MATH_ERRNO) {
288+ check (s.status == -3 ,
289+ " invalid output status ('" + std::to_string (s.status ) + " ')" );
290+ } else {
291+ check (s.status == 0 ,
292+ " invalid output status ('" + std::to_string (s.status ) + " ')" );
293+ }
290294 }
291- #endif /* __INTEL_LLVM_COMPILER */
292295}
293296
294297static void test8 (const std::string& library) {
You can’t perform that action at this time.
0 commit comments