OSDN Git Service

* gcc.dg/dfp/func-array.c: Support -DDBG to report individual failures.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / dfp / keywords-reserved.c
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99" } */
3
4 /* N1150 3: Decimal floating types.
5    C99 6.4.1(2): Keywords.
6    Decimal float keywords cannot be used in other contexts.  */
7
8 int _Decimal32 (void)           /* { dg-error "error" } */
9 {
10   return 0;
11 }
12
13 int foo (int i)
14 {
15   int _Decimal64 = i * 2;       /* { dg-error "error" } */
16   return _Decimal64;            /* { dg-error "error" } */
17 }