2017-09-26 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51879-2.c
blobdd9b4559006f5f8f4b7bd48a4189788e9966a562
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */
4 int bar (int);
5 void baz (int);
7 void
8 foo (int y)
10 int a;
11 if (y)
12 baz (bar (7) + 6);
13 else
14 baz (bar (7) + 6);
17 /* { dg-final { scan-tree-dump-times "bar \\(" 1 "pre"} } */
18 /* { dg-final { scan-tree-dump-times "baz \\(" 1 "pre"} } */