aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2002-11-20 10:50:29 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2002-11-20 10:50:29 +0000
commit6d1d1db0447e3ef7ca9019487668923b7cffe865 (patch)
tree21b63ab7d28b41d3d61107cb4cdd6694780a9c0e /gcc
parent02a362d9826f4ea8868e7e56ac145a523823022e (diff)
downloadgcc-6d1d1db0447e3ef7ca9019487668923b7cffe865.zip
gcc-6d1d1db0447e3ef7ca9019487668923b7cffe865.tar.gz
gcc-6d1d1db0447e3ef7ca9019487668923b7cffe865.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021120-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20021120-2.c9
3 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b5355d7..510a913 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..423f8ec
--- /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 0000000..51f0e25
--- /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(); }