summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/c89.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/c89.c')
-rw-r--r--clang/test/Sema/c89.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/test/Sema/c89.c b/clang/test/Sema/c89.c
index 301ec374db3..6a12f1cc568 100644
--- a/clang/test/Sema/c89.c
+++ b/clang/test/Sema/c89.c
@@ -36,6 +36,14 @@ int *__restrict; /* expected-error {{expected identifier}} */
/* Implicit int, always ok */
-foo() {}
+test6() {}
+
+/* PR2012 */
+test7; /* expected-warning {{declaration specifier missing, defaulting to 'int'}} */
+
+void test8(int, x); /* expected-warning {{declaration specifier missing, defaulting to 'int'}} */
+
+typedef int sometype;
+int a(sometype, y) {return 0;} /* expected-warning {{declaration specifier missing, defaulting to 'int'}} */
OpenPOWER on IntegriCloud