Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/stabilize-6662.B
/
.
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ifc-6.c
blob: a9c5db3873f9ec4dd90b72b6791020d6d9742255 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-c -O2 -ftree-vectorize" { target *-*-* } } */
static
int
x
;
foo
(
int
n
,
int
*
A
)
{
int
i
;
for
(
i
=
0
;
i
<
n
;
i
++)
{
if
(
A
[
i
])
x
=
2
;
if
(
A
[
i
+
1
])
x
=
1
;
}
}