2016-03-10 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-34.c
blob5738feaffb18355f2ac87fe12a7e2236bd8a40a5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-optimized" } */
4 void foo (int b)
6 void *p;
7 lab:
8 if (b)
9 p = &&lab;
10 else
12 lab2:
13 p = &&lab2;
15 *(char *)p = 1;
18 /* We should keep the store to the label locations. */
19 /* { dg-final { scan-tree-dump " = 1;" "optimized" } } */