2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tail-merge-store.c
blob1aefbdc1495f06e11fbf1418494bc9a4c0dd014f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */
4 int z;
5 int x;
7 void
8 f (int c, int d)
10 if (c)
11 z = 5;
12 else
14 if (d)
15 x = 4;
16 z = 5;
20 /* { dg-final { scan-tree-dump-times "duplicate of" 1 "pre"} } */
21 /* { dg-final { scan-tree-dump-times "z = 5" 1 "pre"} } */
22 /* { dg-final { cleanup-tree-dump "pre" } } */