2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-34.c
blob363d121df8790d11104d039cf99a23715d7a5e05
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-optimized" } */
3 /* { dg-require-effective-target label_values } */
5 void foo (int b)
7 void *p;
8 lab:
9 if (b)
10 p = &&lab;
11 else
13 lab2:
14 p = &&lab2;
16 *(char *)p = 1;
19 /* We should keep the store to the label locations. */
20 /* { dg-final { scan-tree-dump " = 1;" "optimized" } } */