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
2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
uninit-B-O0-2.c
blob
dfa3de97e0ca89644e986edff7e2ba9b21f97b5d
1
/* Origin: PR c/179 inverse of uninit-B-O0.c, we should not warn. */
2
/* { dg-do compile } */
3
/* { dg-options "-O0 -Wuninitialized" } */
4
extern
void
foo
(
int
*);
5
extern
void
bar
(
int
);
6
7
void
8
baz
(
void
)
9
{
10
int
i
;
11
foo
(&
i
);
/* { dg-bogus "is used uninitialized" "uninit i warning" } */
12
if
(
i
)
13
bar
(
i
);
14
}
15
16