summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/dfp/keywords-reserved.c
blob: 1117ae8d937dcc0242a1829becd6d960c7267420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */

/* N1150 3: Decimal floating types.
   C99 6.4.1(2): Keywords.
   Decimal float keywords cannot be used in other contexts.  */

int _Decimal32 (void)		/* { dg-error "" } */
{
  return 0;
}

int foo (int i)
{
  int _Decimal64 = i * 2;	/* { dg-error "" } */
  return _Decimal64;		/* { dg-error "" } */
}