aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr80747.c
blob: ea9dd3c3033581a078f155d8e764bdfff47c414a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR rtl-optimization/80747 */
/* { dg-do compile } */
/* { dg-options "-fprofile-use -freorder-blocks-and-partition -O1 -foptimize-sibling-calls" } */

int
foo (int a)
{
  int r;
  if (a & 1)
    r = foo (a - 1);
  else if (a)
    r = foo (a - 2);
  else
    return 0;
  if (r)
    r = r;
  return r;
}