Debian Codegraph @

gcc/testsuite/gcc.dg/reciprocal-math-1.c

raw
1 /* Test __RECIPROCAL_MATH__ is defined with -freciprocal-math. */
2 /* { dg-do compile } */
3 /* { dg-options "-freciprocal-math" } */
4
5 #ifndef __RECIPROCAL_MATH__
6 #error "__RECIPROCAL_MATH__ not defined"
7 #endif
8
9 #pragma GCC optimize "-fno-reciprocal-math"
10 #ifdef __RECIPROCAL_MATH__
11 #error "__RECIPROCAL_MATH__ defined"
12 #endif
13
14 #pragma GCC optimize "-freciprocal-math"
15 #ifndef __RECIPROCAL_MATH__
16 #error "__RECIPROCAL_MATH__ not defined"
17 #endif