From: Eric Botcazou Date: Wed, 4 Dec 2002 15:06:23 +0000 (+0100) Subject: * gcc.c-torture/compile/20021204-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d61fd3f12af8877fcd15d3db741a695ee9c4b5b1;p=gcc.git * gcc.c-torture/compile/20021204-1.c: New test. From-SVN: r59818 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index af4f57b01dc..0695cfbaf13 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-12-04 Eric Botcazou + + * gcc.c-torture/compile/20021204-1.c: New test. + 2002-12-03 Mark Mitchell PR c++/8688 @@ -87,7 +91,7 @@ Wed Nov 27 14:37:34 CET 2002 Jan Hubicka * g++.dg/abi/empty10.C: New test. -2002-11-24  Eric Botcazou   +2002-11-24 Eric Botcazou * gcc.c-torture/compile/20021124-1.c: New test. @@ -95,11 +99,11 @@ Wed Nov 27 14:37:34 CET 2002 Jan Hubicka * g++.dg/abi/rtti2.C: New test. -2002-11-21  Eric Botcazou   +2002-11-21 Eric Botcazou * gcc.dg/i386-unroll-1.c: New test. -2002-11-20  Eric Botcazou   +2002-11-20 Eric Botcazou * 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 * gcc.c-torture/execute/20021118-3.c: New test. -2002-11-19  Eric Botcazou   +2002-11-19 Eric Botcazou * 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 00000000000..4e8d3fefcbb --- /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(); +}