annotate gcc/testsuite/gcc.dg/iec-559-macros-4.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test __GCC_IEC_559 and __GCC_IEC_559_COMPLEX macros values. */
kono
parents:
diff changeset
2 /* { dg-do preprocess } */
kono
parents:
diff changeset
3 /* { dg-options "-ffinite-math-only" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 #ifndef __GCC_IEC_559
kono
parents:
diff changeset
6 # error "__GCC_IEC_559 not defined"
kono
parents:
diff changeset
7 #endif
kono
parents:
diff changeset
8 #ifndef __GCC_IEC_559_COMPLEX
kono
parents:
diff changeset
9 # error "__GCC_IEC_559_COMPLEX not defined"
kono
parents:
diff changeset
10 #endif
kono
parents:
diff changeset
11 #if __GCC_IEC_559_COMPLEX > __GCC_IEC_559
kono
parents:
diff changeset
12 # error "__GCC_IEC_559_COMPLEX > __GCC_IEC_559"
kono
parents:
diff changeset
13 #endif
kono
parents:
diff changeset
14 #if __GCC_IEC_559_COMPLEX < 0
kono
parents:
diff changeset
15 # error "__GCC_IEC_559_COMPLEX < 0"
kono
parents:
diff changeset
16 #endif
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 #if __GCC_IEC_559 != 0
kono
parents:
diff changeset
19 # error "__GCC_IEC_559 != 0 with -ffinite-math-only"
kono
parents:
diff changeset
20 #endif
kono
parents:
diff changeset
21 #if __GCC_IEC_559_COMPLEX != 0
kono
parents:
diff changeset
22 # error "__GCC_IEC_559_COMPLEX != 0 with -ffinite-math-only"
kono
parents:
diff changeset
23 #endif