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
Implement -Wno-maybe-uninitialized
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
uninit-suppress.c
blob
64038a3a2398161f29b0ceb86510a15b626e8ea6
1
/* { dg-do compile } */
2
/* { dg-options "-fno-tree-ccp -O2 -Wuninitialized -Wno-maybe-uninitialized" } */
3
void
blah
();
4
int
gflag
;
5
6
void
foo
()
7
{
8
int
v
;
9
if
(
gflag
)
10
v
=
10
;
11
12
blah
();
/* *gflag may be killed, but compiler won't know */
13
14
if
(
gflag
)
15
bar
(
v
);
/* { dg-bogus "uninitialized" "should be suppressed" } */
16
}