blob: 201c5eab65587e13d5d46c5ff4cbd6181d78debf [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O1 -foptimize-sibling-calls -fdump-tree-tailr-details" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
int
t(char *a)
{
static char p[100];
if (a)
return t(p);
else
return 0;
}
/* { dg-final { scan-tree-dump-times "Eliminated tail recursion" 1 "tailr"} } */
/* { dg-final { cleanup-tree-dump "tailr" } } */