OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c/36507
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
inline-28.c
1
/* PR c/36507 */
2
/* { dg-do run } */
3
/* { dg-options "-O0 -std=gnu89" } */
4
5
int
6
main (void)
7
{
8
int i = 2;
9
auto inline int f1 (void)
10
{
11
return i;
12
}
13
inline int f2 (void)
14
{
15
return i;
16
}
17
auto inline int f3 (void);
18
auto inline int f3 (void)
19
{
20
return i;
21
}
22
auto inline int f4 (void);
23
inline int f4 (void)
24
{
25
return i;
26
}
27
return f1 () + f2 () + f3 () + f4 () - 8;
28
}