Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/iec-559-macros-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Test __GCC_IEC_559 and __GCC_IEC_559_COMPLEX macros values. */ | |
2 /* { dg-do preprocess } */ | |
3 /* { dg-options "-freciprocal-math" } */ | |
4 | |
5 #ifndef __GCC_IEC_559 | |
6 # error "__GCC_IEC_559 not defined" | |
7 #endif | |
8 #ifndef __GCC_IEC_559_COMPLEX | |
9 # error "__GCC_IEC_559_COMPLEX not defined" | |
10 #endif | |
11 #if __GCC_IEC_559_COMPLEX > __GCC_IEC_559 | |
12 # error "__GCC_IEC_559_COMPLEX > __GCC_IEC_559" | |
13 #endif | |
14 #if __GCC_IEC_559_COMPLEX < 0 | |
15 # error "__GCC_IEC_559_COMPLEX < 0" | |
16 #endif | |
17 | |
18 #if __GCC_IEC_559 != 0 | |
19 # error "__GCC_IEC_559 != 0 with -freciprocal-math" | |
20 #endif | |
21 #if __GCC_IEC_559_COMPLEX != 0 | |
22 # error "__GCC_IEC_559_COMPLEX != 0 with -freciprocal-math" | |
23 #endif |