]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/reciprocal-math-2.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / reciprocal-math-2.c
1 /* Test __RECIPROCAL_MATH__ is not defined with -fno-reciprocal-math. */
2 /* { dg-do compile } */
3 /* { dg-options "-fno-reciprocal-math" } */
4
5 #ifdef __RECIPROCAL_MATH__
6 #error "__RECIPROCAL_MATH__ defined"
7 #endif
8
9 #pragma GCC optimize "-freciprocal-math"
10 #ifndef __RECIPROCAL_MATH__
11 #error "__RECIPROCAL_MATH__ not defined"
12 #endif
13
14 #pragma GCC optimize "-fno-reciprocal-math"
15 #ifdef __RECIPROCAL_MATH__
16 #error "__RECIPROCAL_MATH__ defined"
17 #endif