From: Eric Botcazou Date: Wed, 20 Nov 2002 10:50:29 +0000 (+0000) Subject: 20021120-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d1d1db0447e3ef7ca9019487668923b7cffe865;p=gcc.git 20021120-1.c: New test. * gcc.c-torture/compile/20021120-1.c: New test. * gcc.c-torture/compile/20021120-2.c: New test. From-SVN: r59303 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b5355d7dce6..510a9132b81 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-11-20  Eric Botcazou   + + * gcc.c-torture/compile/20021120-1.c: New test. + * gcc.c-torture/compile/20021120-2.c: New test. + 2002-11-20 Richard Sandiford * gcc.dg/bitfld-5.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20021120-1.c b/gcc/testsuite/gcc.c-torture/compile/20021120-1.c new file mode 100644 index 00000000000..423f8ec1964 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021120-1.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/20021120-2.c b/gcc/testsuite/gcc.c-torture/compile/20021120-2.c new file mode 100644 index 00000000000..51f0e257dfd --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20021120-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 bar () { return foo(); }