Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / associative-math-1.c
blob3f9ce5b4bf724f9026451ddcc08c9b71efee6e24
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"
7 #endif
9 #pragma GCC optimize "-fno-associative-math"
10 #ifdef __ASSOCIATIVE_MATH__
11 #error "__ASSOCIATIVE_MATH__ defined"
12 #endif
14 #pragma GCC optimize "-fassociative-math"
15 #ifndef __ASSOCIATIVE_MATH__
16 #error "__ASSOCIATIVE_MATH__ not defined"
17 #endif