Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-35.c
blob1ea29885844aa23e79bc7100690deffa6819e9c6
1 /* PR70128 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-optimized" } */
5 void foo (int b)
7 extern void bar (void);
8 extern void baz (void);
9 void *p;
10 if (b)
11 p = bar;
12 else
13 p = baz;
14 *(char *)p = 1;
17 /* We should keep the store to the function locations. */
18 /* { dg-final { scan-tree-dump " = 1;" "optimized" } } */