gcc/testsuite/gcc.dg/fixed-point/keywords-ignored-c99.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-std=c99" } */ |
| 3 | |
| 4 | /* Fixed-point keywords are not reserved for c99. */ |
| 5 | |
| 6 | int _Fract (void) |
| 7 | { |
| 8 | return 0; |
| 9 | } |
| 10 | |
| 11 | int _Accum (void) |
| 12 | { |
| 13 | return 0; |
| 14 | } |
| 15 | |
| 16 | int _Sat (void) |
| 17 | { |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | int foo1 (int i) |
| 22 | { |
| 23 | int _Fract = i * 2; |
| 24 | return _Fract; |
| 25 | } |
| 26 | |
| 27 | int foo2 (int i) |
| 28 | { |
| 29 | int _Accum = i * 2; |
| 30 | return _Accum; |
| 31 | } |
| 32 | |
| 33 | int foo3 (int i) |
| 34 | { |
| 35 | int _Sat = i * 2; |
| 36 | return _Sat; |
| 37 | } |