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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [fixed-point/] [keywords-ignored-c99.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-std=c99" } */
3
 
4
/* Fixed-point keywords are not reserved for c99.  */
5
 
6
int _Fract (void)
7
{
8
  return 0;
9
}
10
 
11
int _Accum (void)
12
{
13
  return 0;
14
}
15
 
16
int _Sat (void)
17
{
18
  return 0;
19
}
20
 
21
int foo1 (int i)
22
{
23
  int _Fract = i * 2;
24
  return _Fract;
25
}
26
 
27
int foo2 (int i)
28
{
29
  int _Accum = i * 2;
30
  return _Accum;
31
}
32
 
33
int foo3 (int i)
34
{
35
  int _Sat = i * 2;
36
  return _Sat;
37
}

powered by: WebSVN 2.1.0

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