☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
pr59223.c
☽
☼
gcc/testsuite/c-c++-common/pr59223.c
code
plain
raw
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" } */
13
}