summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr51879-6.c
blob: 42950668cbb5b9ecdb380f69d1818a3e43bcf758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre" } */


int bar (int);
void baz (int);
void bla (int);

void
foo (int y)
{
  int a;
  if (y == 6)
    {
      bla (5);
      a = bar (7);
    }
  else
    {
      bla (5);
      a = bar (7);
    }
  baz (a);
}

/* { dg-final { scan-tree-dump-times "bar \\(" 1 "pre"} } */