Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
uninit-pred-loop-1_b.C
blob: b17b9360192012afed23e28a690e7bea7ce7d18f [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-Wuninitialized -O2" } */
extern
int
bar
();
int
foo
(
int
n
)
{
for
(;;)
{
int
err
=
({
int
_err
;
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
_err
=
17
;
_err
=
bar
();
}
_err
;
});
if
(
err
==
0
)
return
17
;
}
return
18
;
}