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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [fixed-point/] [keywords-ignored-c99.c] - Rev 689

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-std=c99" } */
 
/* Fixed-point keywords are not reserved for c99.  */
 
int _Fract (void)
{
  return 0;
}
 
int _Accum (void)
{
  return 0;
}
 
int _Sat (void)
{
  return 0;
}
 
int foo1 (int i)
{
  int _Fract = i * 2;
  return _Fract;
}
 
int foo2 (int i)
{
  int _Accum = i * 2;
  return _Accum;
}
 
int foo3 (int i)
{
  int _Sat = i * 2;
  return _Sat;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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