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
2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
pr59223.c
blob
471c0625df33342fcb62a9fa48d4417b949227de
1
/* PR c/59223 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -Wmaybe-uninitialized" } */
4
5
int
foo
(
int
x
)
6
{
7
int
y
;
8
if
(
x
==
0
)
9
y
=
1
;
10
else if
(
x
==
1
)
11
y
=
2
;
12
return
y
;
/* { dg-warning "may be used uninitialized in this function" } */
13
}