PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / tail-merge-store.c
blob6f323a0e1ab9214d633046da52e7af7aa08429a8
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"} } */