PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr81897-2.c
blob3960af454e55d877a52b83cf90c6be0f6790222b
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-tree-ccp -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;