Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/fpermitted-flt-eval-methods_4.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 /* { dg-do run } */ | |
2 /* { dg-options "-std=c11" } */ | |
3 | |
4 /* Test that when compiling with -std=c11 and defining | |
5 __STDC_WANT_IEC_60559_TYPES_EXT__, we only see the ISO/IEC TS | |
6 18661-3 values for FLT_EVAL_METHOD. */ | |
7 | |
8 #define __STDC_WANT_IEC_60559_TYPES_EXT__ | |
9 | |
10 #include <float.h> | |
11 | |
12 int main (int argc, char** argv) | |
13 { | |
14 switch (__FLT_EVAL_METHOD__) | |
15 { | |
16 case 0: | |
17 case 1: | |
18 case 2: | |
19 case 16: | |
20 case -1: | |
21 return 0; | |
22 default: | |
23 return 1; | |
24 } | |
25 } |