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
2013-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
uninit-pred-loop-1_b.cc
blob
e4ef3d22c069def9c054058648c2bace2414ce8a
1
/* { dg-do compile } */
2
/* { dg-options "-Wuninitialized -O2" } */
3
4
extern
int
bar
();
5
int
foo
(
int
n
)
6
{
7
for
(;;) {
8
int
err
= ({
int
_err
;
9
for
(
int
i
=
0
;
i
<
n
; ++
i
) {
10
_err
=
17
;
11
_err
=
bar
();
12
}
13
_err
;
14
});
/* { dg-warning "uninitialized" "warn on _err" } */
15
16
if
(
err
==
0
)
return
17
;
17
}
18
19
return
18
;
20
}
21