summaryrefslogtreecommitdiffstats
path: root/clang/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
commitd5a36321b91150206c35eb691cbb646dd3fc74c4 (patch)
treef8e43a09cc7e5cb74b9e9b29fb44a1074087a104 /clang/test/Sema/decl-invalid.c
parentcde8de519d429f65efc0279dfd5b35d045d6a9e7 (diff)
downloadbcm5719-llvm-d5a36321b91150206c35eb691cbb646dd3fc74c4.tar.gz
bcm5719-llvm-d5a36321b91150206c35eb691cbb646dd3fc74c4.zip
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. llvm-svn: 85924
Diffstat (limited to 'clang/test/Sema/decl-invalid.c')
-rw-r--r--clang/test/Sema/decl-invalid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Sema/decl-invalid.c b/clang/test/Sema/decl-invalid.c
index 051f0f7ffbc..823551f02e6 100644
--- a/clang/test/Sema/decl-invalid.c
+++ b/clang/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}}
OpenPOWER on IntegriCloud