20021120-1.c: New test.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 20 Nov 2002 10:50:29 +0000 (10:50 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 20 Nov 2002 10:50:29 +0000 (10:50 +0000)
* gcc.c-torture/compile/20021120-1.c: New test.
* gcc.c-torture/compile/20021120-2.c: New test.

From-SVN: r59303

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20021120-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/20021120-2.c [new file with mode: 0644]

index b5355d7..510a913 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
 
        * 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 (file)
index 0000000..423f8ec
--- /dev/null
@@ -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 (file)
index 0000000..51f0e25
--- /dev/null
@@ -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(); }