repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged with mainline at revision 128810.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
fixed-point
/
keywords-ignored-c99.c
blob
c20b8e4ac04b0b7e63d67aa0cd1bb2945b38c985
1
/* { 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
}