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