OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [dfp/] [keywords-reserved.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.