Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / no-math-errno-4.c
blobc6daa128ffdd47a260d70fe9b16e7137813732ed
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"
7 #endif
9 #pragma GCC optimize "-fno-math-errno"
10 #ifndef __NO_MATH_ERRNO__
11 #error "__NO_MATH_ERRNO__ not defined"
12 #endif
14 #pragma GCC optimize "-fmath-errno"
15 #ifdef __NO_MATH_ERRNO__
16 #error "__NO_MATH_ERRNO__ defined"
17 #endif