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
* intrinsics/access.c: Include <stdlib.h>.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
inline-30.c
blob
bb9b2b4776b7af3720232a3dd311a1b199ad6c52
1
/* PR c/36507 */
2
/* { dg-do run } */
3
/* { dg-options "-O0 -std=gnu99 -fgnu89-inline" } */
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
}