Debian Codegraph @

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

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