libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr90394.c
blob16e750d6b33bcf9422f4891a67cb8588183d8d67
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-tree-fre -Wuninitialized" } */
3 int pz;
4 int zi;
6 void
7 uk (void)
9 int th = 1;
10 int *gw = &zi;
12 for (zi = 0; zi < 2; ++zi)
14 int a2 = 0;
16 for (zi = 0; zi < 1; ++zi)
18 th = a2 * 2;
20 og:
21 for (pz = 0; pz < 1; ++pz)
26 pz = !!*gw ? *gw : pz;
27 pz = (!!th ? (pz & 1) : 0);
28 if (pz == 0)
29 ++a2;
32 goto og;