view gcc/testsuite/gcc.dg/dfp/keywords-reserved.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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 "" } */
}