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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
nested-func-11.c
blob
01096b4147f6a8e082d5520be8649aaaf561beb2
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fno-omit-frame-pointer" } */
3
4
int
__attribute__
((
noipa
))
foo
(
int
i
)
5
{
6
int
a
;
7
8
void
__attribute__
((
noipa
))
nested2
(
int
i
)
9
{
10
a
=
i
;
11
}
12
13
void
__attribute__
((
noipa
))
nested1
(
int
i
)
14
{
15
int
b
[
32
];
16
17
for
(
int
j
=
0
;
j
<
32
;
j
++)
18
b
[
j
] =
i
+
j
;
19
20
nested2
(
b
[
i
]);
21
}
22
23
nested1
(
i
);
24
25
return
a
;
26
}
27
28
int
main
(
void
)
29
{
30
if
(
foo
(
4
) !=
8
)
31
__builtin_abort
();
32
33
return
0
;
34
}