PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / pr59223.c
blob471c0625df33342fcb62a9fa48d4417b949227de
1 /* PR c/59223 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wmaybe-uninitialized" } */
5 int foo (int x)
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" } */