* gcc.c-torture/execute/20000412-2.c: New test.
From-SVN: r33115
This commit is contained in:
parent
002fe164bc
commit
2c45f94b58
@ -1,3 +1,7 @@
|
||||
Wed Apr 12 10:25:08 2000 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/execute/20000412-2.c: New test.
|
||||
|
||||
2000-04-12 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* objc/execute/bf-20.m: New test.
|
||||
|
16
gcc/testsuite/gcc.c-torture/execute/20000412-2.c
Normal file
16
gcc/testsuite/gcc.c-torture/execute/20000412-2.c
Normal file
@ -0,0 +1,16 @@
|
||||
int f(int a,int *y)
|
||||
{
|
||||
int x = a;
|
||||
|
||||
if (a==0)
|
||||
return *y;
|
||||
|
||||
return f(a-1,&x);
|
||||
}
|
||||
|
||||
int main(int argc,char **argv)
|
||||
{
|
||||
if (f (100, (int *) 0) != 1)
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user