mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 02:40:27 +08:00
re PR middle-end/21964 (broken tail call at -O2 or more)
PR middle-end/21964 * gcc.c-torture/execute/pr21964-1.c: New test. From-SVN: r102850
This commit is contained in:
parent
7a7c5ab01a
commit
e6a854210d
@ -1,3 +1,8 @@
|
||||
2005-08-08 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
PR middle-end/21964
|
||||
* gcc.c-torture/execute/pr21964-1.c: New test.
|
||||
|
||||
2005-08-08 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
PR c/22458
|
||||
|
16
gcc/testsuite/gcc.c-torture/execute/pr21964-1.c
Normal file
16
gcc/testsuite/gcc.c-torture/execute/pr21964-1.c
Normal file
@ -0,0 +1,16 @@
|
||||
void
|
||||
foo (int n, int m)
|
||||
{
|
||||
if (m == 0)
|
||||
exit (0);
|
||||
else if (n != 0)
|
||||
abort ();
|
||||
else
|
||||
foo (n++, m - 1);
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
foo (0, 4);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user