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
Merged r158704 through r158906 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
uninit-pred-3_b.c
blob
978210d50796d46b51af2fd4b1d4dd1416c6a2fc
1
/* { dg-do compile } */
2
/* { dg-options "-Wuninitialized -O2" } */
3
4
int
g
;
5
void
bar
();
6
void
blah
(
int
);
7
8
int
foo
(
int
n
,
int
m
,
int
r
)
9
{
10
int
flag
=
0
;
11
int
v
;
12
13
if
(
n
)
14
{
15
v
=
r
;
16
flag
=
1
;
17
}
18
19
if
(
m
)
20
g
++;
21
else
22
bar
();
23
24
if
(
r
>
0
)
25
goto
use
;
26
if
(
flag
)
27
{
28
use
:
29
blah
(
v
);
/* { dg-warning "uninitialized" "real warning" } */
30
}
31
32
return
0
;
33
}