Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/fpermitted-flt-eval-methods_1.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 we only see the C99/C11 values for __FLT_EVAL_METHOD__ if | |
5 we are compiling with -std=c11. */ | |
6 | |
7 int main (int argc, char** argv) | |
8 { | |
9 switch (__FLT_EVAL_METHOD__) | |
10 { | |
11 case 0: | |
12 case 1: | |
13 case 2: | |
14 case -1: | |
15 return 0; | |
16 default: | |
17 return 1; | |
18 } | |
19 } |