aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20021120-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20021120-2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20021120-2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20021120-2.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20021120-2.c
new file mode 100644
index 000000000..51f0e257d
--- /dev/null
+++ b/gcc-4.9/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(); }