[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr20644.c
bloba9a73241ef547b5409fc561a9978b2d6976d0236
1 /* PR 20644 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wuninitialized" } */
4 int foo ()
6 int i = 0;
7 int j;
9 if (1 == i)
10 return j;
12 return 0;
15 int bar ()
17 int i = 1;
18 int j;
19 /* { dg-warning "uninitialized" "uninitialized" { target *-*-* } .-1 } */
21 if (1 == i)
22 return j;
24 return 0;