From: Eric Botcazou Date: Sat, 23 Nov 2002 08:22:13 +0000 (+0000) Subject: 20021123-2.c: New test. X-Git-Tag: releases/gcc-3.2.2~258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5066422418cf6b0b365295861e1fd991f2a320d2;p=thirdparty%2Fgcc.git 20021123-2.c: New test. * gcc.c-torture/compile/20021123-2.c: New test. * gcc.c-torture/compile/20021123-3.c: New test. From-SVN: r59412 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8009a95627b7..76361d26594c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-11-23  Eric Botcazou   + + * gcc.c-torture/compile/20021123-2.c: New test. + * gcc.c-torture/compile/20021123-3.c: New test. + 2002-11-23  Eric Botcazou   * gcc.c-torture/compile/20021123-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-2.c b/gcc/testsuite/gcc.c-torture/compile/20021123-2.c new file mode 100644 index 000000000000..423f8ec1964b --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021123-2.c @@ -0,0 +1,9 @@ +/* PR c/8518 */ +/* Contributed by Volker Reichelt. */ + +/* Verify that GCC doesn't get confused by the + redefinition of an extern inline function. */ + +extern int inline foo () { return 0; } +extern int inline bar () { return 0; } +static int inline bar () { return foo(); } diff --git a/gcc/testsuite/gcc.c-torture/compile/20021123-3.c b/gcc/testsuite/gcc.c-torture/compile/20021123-3.c new file mode 100644 index 000000000000..51f0e257dfdd --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021123-3.c @@ -0,0 +1,9 @@ +/* PR c/8518 */ +/* Contributed by Volker Reichelt. */ + +/* Verify that GCC doesn't get confused by the + redefinition of an extern inline function. */ + +extern int inline foo () { return 0; } +extern int inline bar () { return 0; } +static int bar () { return foo(); }