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