Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr81897-2.c
blob644de655225d9d72acd6d58aff379eb4f1a5373e
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-tree-ccp -fno-tree-dse -Wmaybe-uninitialized" } */
4 int oo;
6 void
7 pc (int *tt)
9 int cf = 0;
11 if (*tt != 0)
13 if (0)
15 int *qg;
16 int uj = 0;
18 t6:
19 tt = &cf;
20 if (oo != 0)
22 ++uj; /* { dg-warning "may be used uninit" } */
23 *qg = !!oo && !!uj; /* { dg-warning "may be used uninit" } */
26 cf = 0;
27 goto t6;
30 if (oo != 0)
32 *tt = 1;
33 goto t6;