Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/fpermitted-flt-eval-methods_3.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do run } */ |
2 /* { dg-options "-std=c11" } */ | |
3 | |
4 /* Test that when compiling with -std=c11, we only see the C99/C11 values | |
5 for FLT_EVAL_METHOD. */ | |
6 | |
7 #include <float.h> | |
8 | |
9 int main (int argc, char** argv) | |
10 { | |
11 switch (FLT_EVAL_METHOD) | |
12 { | |
13 case 0: | |
14 case 1: | |
15 case 2: | |
16 case -1: | |
17 return 0; | |
18 default: | |
19 return 1; | |
20 } | |
21 } |