OSDN Git Service

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