blob: e1e43e5bcc840f80b06a178767acc8d8f6052f30 [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(int a)
{
if (a)
return t(a-1);
else
return 0;
}
/* { dg-final { scan-tree-dump-times "Eliminated tail recursion" 1 "tailr"} } */
/* { dg-final { cleanup-tree-dump "tailr" } } */