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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [dfp/] [keywords-reserved.c] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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