1 /* Test __NO_MATH_ERRNO__ is defined and undefined by pragmas. */
2 /* { dg-do compile } */
3 /* { dg-options "-fmath-errno" } */
5 #ifdef __NO_MATH_ERRNO__
6 #error "__NO_MATH_ERRNO__ defined"
9 #pragma GCC optimize "-fno-math-errno"
10 #ifndef __NO_MATH_ERRNO__
11 #error "__NO_MATH_ERRNO__ not defined"
14 #pragma GCC optimize "-fmath-errno"
15 #ifdef __NO_MATH_ERRNO__
16 #error "__NO_MATH_ERRNO__ defined"