annotate gcc/testsuite/gcc.dg/iec-559-macros-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +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 "-funsafe-math-optimizations" } */
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 -funsafe-math-optimizations"
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 -funsafe-math-optimizations"
kono
parents:
diff changeset
23 #endif