summaryrefslogtreecommitdiff
path: root/test/Sema/array-constraint.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-18 00:39:39 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-18 00:39:39 +0000
commitd3cd1e56d19474ac785e54c3915d82d2ad7f7fa9 (patch)
tree7c6f28f0cb9ffd2e65ed2d2e2646db271a36feb9 /test/Sema/array-constraint.c
parent51f5499420e3e2344c1e6c3eff4764c4ec0b47ca (diff)
downloadclang-d3cd1e56d19474ac785e54c3915d82d2ad7f7fa9.tar.gz
Sema::FinalizeDeclaratorGroup()...make sure we emit an diagnostic for tentative definitions with incomplete types. Touch up all test cases that are effected.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-constraint.c')
-rw-r--r--test/Sema/array-constraint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c
index df79681d06..8b2ce5eca4 100644
--- a/test/Sema/array-constraint.c
+++ b/test/Sema/array-constraint.c
@@ -24,7 +24,8 @@ struct vari *func(struct vari a[]) { // expected-error {{'struct vari' may not b
return a;
}
-int foo[](void); // expected-error {{'foo' declared as array of functions}}
+int foo[](void); // expected-error {{variable has incomplete type 'int (*[])(void)'}} expected-error {{'foo' declared as array of functions}}
+int foo2[1](void); // expected-error {{'foo2' declared as array of functions}}
typedef int (*pfunc)(void);