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
/
torture
/
pr50067-3.c
blob
b774ea3f87d9c6b2deb1ddb34368cb295ddb12f5
1
/* { dg-do run } */
2
/* { dg-options "-fpredictive-commoning" } */
3
4
extern
void
abort
(
void
);
5
int
a
[
6
] = {
0
,
0
,
0
,
0
,
7
,
0
};
6
static int
*
p
= &
a
[
4
];
7
8
int
9
main
()
10
{
11
int
i
;
12
for
(
i
=
0
;
i
<
4
; ++
i
)
13
{
14
a
[
i
+
1
] =
a
[
i
+
2
] >
i
;
15
*
p
&= ~
1
;
16
}
17
if
(
a
[
4
] !=
0
)
18
abort
();
19
return
0
;
20
}