diff options
author | Jeffrey A Law <law@cygnus.com> | 2000-04-12 16:25:29 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-04-12 10:25:29 -0600 |
commit | 2c45f94b5897e053d38565a8f7d3b7ef443fdd00 (patch) | |
tree | 9b27c4106b50f37ed0feed611ab3b1bce1e2747f /gcc | |
parent | 002fe164bc10fc2b5b96c9c8fe6ebc5c77d29812 (diff) | |
download | gcc-2c45f94b5897e053d38565a8f7d3b7ef443fdd00.zip gcc-2c45f94b5897e053d38565a8f7d3b7ef443fdd00.tar.gz gcc-2c45f94b5897e053d38565a8f7d3b7ef443fdd00.tar.bz2 |
* gcc.c-torture/execute/20000412-2.c: New test.
From-SVN: r33115
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20000412-2.c | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b220e80..e783e03a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.c-torture/execute/20000412-2.c b/gcc/testsuite/gcc.c-torture/execute/20000412-2.c new file mode 100644 index 0000000..de3ebf9 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000412-2.c @@ -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); +} |