summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fixed-point/keywords-ignored-c99.c
blob: c20b8e4ac04b0b7e63d67aa0cd1bb2945b38c985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* { 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;
}