1 /* { dg-do compile } */
2 /* { dg-options "-O -Wuninitialized" } */
3
4 int *p, *q;
5
foo(int b)6 int foo (int b)
7 {
8 int i, j = 0;
9 int *x;
10 p = &i;
11 q = &j;
12 if (b)
13 x = p; /* { dg-warning "i. may be used uninitialized" } */
14 else
15 x = q;
16 return *x;
17 }
18
19