summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/function.c')
-rw-r--r--clang/test/Sema/function.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/function.c b/clang/test/Sema/function.c
index a1d71377960..90ade3380b9 100644
--- a/clang/test/Sema/function.c
+++ b/clang/test/Sema/function.c
@@ -58,3 +58,5 @@ void f1static() {
static void f2static(int); // expected-error{{function declared in block scope cannot have 'static' storage class}}
register void f2register(int); // expected-error{{illegal storage class on function}}
}
+
+struct incomplete_test a(void) {} // expected-error{{result type for function definition cannot be incomplete}}
OpenPOWER on IntegriCloud