aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/decl-invalid.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-03 19:26:08 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-03 19:26:08 +0000
commitd8ac05753dc4506224d445ff98399c01da3136e5 (patch)
tree563cd4903b4a1bb089ac0fdffe2638920fce6f27 /test/Sema/decl-invalid.c
parent9c21289a866b677d21ed3d5ecfdfd5ced5a55410 (diff)
Reorganize the parsing of decl groups / function definitions so that
declarators are parsed primarily within a single function (at least for these cases). Remove some excess diagnostics arising during parse failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/decl-invalid.c')
-rw-r--r--test/Sema/decl-invalid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Sema/decl-invalid.c b/test/Sema/decl-invalid.c
index 051f0f7ffb..823551f02e 100644
--- a/test/Sema/decl-invalid.c
+++ b/test/Sema/decl-invalid.c
@@ -10,8 +10,7 @@ int a() {
int r[x()]; // expected-error {{size of array has non-integer type 'void'}}
static y ?; // expected-error{{unknown type name 'y'}} \
- expected-error{{expected identifier or '('}} \
- expected-error{{expected ';' at end of declaration}}
+ expected-error{{expected identifier or '('}}
}
int; // expected-error {{declaration does not declare anything}}