]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
20021123-2.c: New test.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Sat, 23 Nov 2002 08:22:13 +0000 (08:22 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 23 Nov 2002 08:22:13 +0000 (08:22 +0000)
* gcc.c-torture/compile/20021123-2.c: New test.
* gcc.c-torture/compile/20021123-3.c: New test.

From-SVN: r59412

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

index 8009a95627b70c04c3a63c4ad8ce91afad1851ae..76361d26594ca2d2b9d0d2aac1353e3ea135ea98 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * gcc.c-torture/compile/20021123-2.c: New test.
+       * gcc.c-torture/compile/20021123-3.c: New test.
+
 2002-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * 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 (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/20021123-3.c b/gcc/testsuite/gcc.c-torture/compile/20021123-3.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(); }