summaryrefslogtreecommitdiffstats
path: root/test/Sema/invalid-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/invalid-decl.c')
-rw-r--r--test/Sema/invalid-decl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/invalid-decl.c b/test/Sema/invalid-decl.c
index b2c2aaf..950d51d 100644
--- a/test/Sema/invalid-decl.c
+++ b/test/Sema/invalid-decl.c
@@ -38,3 +38,11 @@ static void bar(hid_t p, char); // expected-error {{unknown type name 'hid_t'}}
void foo() {
(void)bar;
}
+
+void test2();
+void test2(undef); // expected-error {{a parameter list without types is only allowed in a function definition}}
+void test2() { }
+
+void test3();
+void test3; // expected-error {{incomplete type}}
+void test3() { }
OpenPOWER on IntegriCloud