aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/array-constraint.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-18 20:40:52 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-18 20:40:52 +0000
commit9a75f8ae17e7f917f491c2e8757bafbf57254c24 (patch)
treee1ccc6972e849f7d0f3ede0b6f30a880577bb835 /test/Sema/array-constraint.c
parenta46b759d55ca607ef9bb09dd3a089418bb6ee44c (diff)
Sema::FinalizeDeclaratorGroup(): Tighten up the tentative definition rule when dealing with arrays.
Bug submitted by Eli. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-constraint.c')
-rw-r--r--test/Sema/array-constraint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/array-constraint.c b/test/Sema/array-constraint.c
index 8b2ce5eca4..3ed5215acc 100644
--- a/test/Sema/array-constraint.c
+++ b/test/Sema/array-constraint.c
@@ -24,7 +24,7 @@ struct vari *func(struct vari a[]) { // expected-error {{'struct vari' may not b
return a;
}
-int foo[](void); // expected-error {{variable has incomplete type 'int (*[])(void)'}} expected-error {{'foo' declared as array of functions}}
+int foo[](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);