aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/tailcall-11.c
blob: 36e441775ff1210028ac16b97256cfd6fd624347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-tailc-details" } */

struct A {};

void goo(void);
struct A foo(void)
{
  goo();
}

/* { dg-final { scan-tree-dump-times "Found tail call" 1 "tailc"} } */