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] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 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.