blob: 23fad9a47e396b4c8d187b3122931e42cac90a9e [file] [log] [blame]
/* APPLE LOCAL file lno */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-phiopt1-details -fdump-tree-tailc-details" } */
int f(int i)
{
int result;
result = t(i);
if (result)
return result;
return 0;
}
/* We should convert one COND_EXPRs into straightline code. */
/* { dg-final { scan-tree-dump-times "straightline" 1 "phiopt1" } } */
/* Also we should have found that the call to t is tail called. */
/* { dg-final { scan-tree-dump-times "Found tail call" 1 "tailc" } } */