OSDN Git Service

* gcc.c-torture/compile/20021120-1.c: New test.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2002 10:50:29 +0000 (10:50 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2002 10:50:29 +0000 (10:50 +0000)
* gcc.c-torture/compile/20021120-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59303 138bc75d-0d04-0410-961f-82ee72b054a4

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(); }