aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/function.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-03-04 07:30:59 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-03-04 07:30:59 +0000
commit7f0f5dce3adcfce88d5c9a0ad0146a33c01a1e8f (patch)
treecb0e219b20ac144d939042b90cd87de313840146 /test/Sema/function.c
parent32fca722dd974b8202d0fb9c71b6c185c0767da6 (diff)
Check that the return type for function definitions is complete.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r--test/Sema/function.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c
index a1d7137796..90ade3380b 100644
--- a/test/Sema/function.c
+++ b/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}}