diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2002-12-04 16:06:23 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2002-12-04 15:06:23 +0000 |
commit | d61fd3f12af8877fcd15d3db741a695ee9c4b5b1 (patch) | |
tree | feb946241be8435eea72f8bfbd0f7b86cd2c0570 /gcc | |
parent | a9b6f1e71218dd241d632aa465b3c0774010b51d (diff) | |
download | gcc-d61fd3f12af8877fcd15d3db741a695ee9c4b5b1.zip gcc-d61fd3f12af8877fcd15d3db741a695ee9c4b5b1.tar.gz gcc-d61fd3f12af8877fcd15d3db741a695ee9c4b5b1.tar.bz2 |
* gcc.c-torture/compile/20021204-1.c: New test.
From-SVN: r59818
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20021204-1.c | 16 |
2 files changed, 24 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index af4f57b..0695cfb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-12-04 Eric Botcazou <ebotcazou@libertysurf.fr> + + * gcc.c-torture/compile/20021204-1.c: New test. + 2002-12-03 Mark Mitchell <mark@codesourcery.com> PR c++/8688 @@ -87,7 +91,7 @@ Wed Nov 27 14:37:34 CET 2002 Jan Hubicka <jh@suse.cz> * g++.dg/abi/empty10.C: New test. -2002-11-24 Eric Botcazou <ebotcazou@libertysurf.fr> +2002-11-24 Eric Botcazou <ebotcazou@libertysurf.fr> * gcc.c-torture/compile/20021124-1.c: New test. @@ -95,11 +99,11 @@ Wed Nov 27 14:37:34 CET 2002 Jan Hubicka <jh@suse.cz> * g++.dg/abi/rtti2.C: New test. -2002-11-21 Eric Botcazou <ebotcazou@libertysurf.fr> +2002-11-21 Eric Botcazou <ebotcazou@libertysurf.fr> * gcc.dg/i386-unroll-1.c: New test. -2002-11-20 Eric Botcazou <ebotcazou@libertysurf.fr> +2002-11-20 Eric Botcazou <ebotcazou@libertysurf.fr> * gcc.c-torture/compile/20021120-1.c: New test. * gcc.c-torture/compile/20021120-2.c: New test. @@ -124,7 +128,7 @@ Wed Nov 27 14:37:34 CET 2002 Jan Hubicka <jh@suse.cz> * gcc.c-torture/execute/20021118-3.c: New test. -2002-11-19 Eric Botcazou <ebotcazou@libertysurf.fr> +2002-11-19 Eric Botcazou <ebotcazou@libertysurf.fr> * gcc.c-torture/compile/20021119-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20021204-1.c b/gcc/testsuite/gcc.c-torture/compile/20021204-1.c new file mode 100644 index 0000000..4e8d3fe --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021204-1.c @@ -0,0 +1,16 @@ +/* PR c/7622 */ + +/* Verify that GCC can handle the mix of + extern inline and nested functions. */ + +extern inline int t() +{ + int q() { return 0; } + + return q(); +} + +int foo() +{ + return t(); +} |