Step #1 to fixing PR2012: c89 allows declspecs to be completely
missing from function definitions only. If we see a function
definiton with missing declspecs, just fudge in an int.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49250 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/c89.c b/test/Sema/c89.c
index 831c1ce..301ec37 100644
--- a/test/Sema/c89.c
+++ b/test/Sema/c89.c
@@ -33,3 +33,9 @@
/* PR2041 */
int *restrict;
int *__restrict; /* expected-error {{expected identifier}} */
+
+
+/* Implicit int, always ok */
+foo() {}
+
+