aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/tailrecursion-8.c
blob: ecde499a06b62a0de23dd21797f3442f54e8626e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O1 -foptimize-sibling-calls -fdump-tree-tailr1-details" } */

struct A {};

struct A foo()
{
  return foo();
}

/* { dg-final { scan-tree-dump-times "Eliminated tail recursion" 1 "tailr1"} } */