annotate gcc/testsuite/gcc.dg/iec-559-macros-6.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
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 "-fsingle-precision-constant" } */
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 -fsingle-precision-constant"
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 -fsingle-precision-constant"
kono
parents:
diff changeset
23 #endif