* gcc.dg/inline-31.c: New test.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 20 Jun 2008 20:55:02 +0000 (21:55 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 20 Jun 2008 20:55:02 +0000 (21:55 +0100)
From-SVN: r136993

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/inline-31.c [new file with mode: 0644]

index 9e70eb671d7fdde50a3b17fd0dc07408a5308740..71de4be63cee01a2ce2a13fbfea95bdd34549cc6 100644 (file)
@@ -1,3 +1,7 @@
+2008-06-20  Joseph Myers  <joseph@codesourcery.com>
+
+       * gcc.dg/inline-31.c: New test.
+
 2008-06-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        * gfortran.dg/fmt_l.f90: Fix end of line test pattern.
diff --git a/gcc/testsuite/gcc.dg/inline-31.c b/gcc/testsuite/gcc.dg/inline-31.c
new file mode 100644 (file)
index 0000000..1d9a221
--- /dev/null
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-options "-std=c99 -pedantic-errors" } */
+inline int f (void) { return 0; }
+
+void
+g (void)
+{
+  extern int f();
+}