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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr54669.c
blob
b68c0476a4953d20b07b5d8f21eda6aaee2269dd
1
/* PR tree-optimization/54669 */
2
/* Testcase by Zdenek Sojka <zsojka@seznam.cz> */
3
4
/* { dg-do compile } */
5
/* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
6
7
int
a
[
10
];
8
9
void
10
foo
(
void
)
11
{
12
int
x
;
13
int
i
;
14
for
(
i
=
0
;
i
<
1
;)
15
{
16
int
b
[
3
];
17
for
(
i
=
0
;
i
<
1
;
i
++)
18
b
[
i
] =
a
[
i
];
19
if
(&
x
)
20
a
[
0
] =
b
[
0
];
21
}
22
}