1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3@interface A
4+(void) foo:(int) a;
5@end
6
7int main() {
8  id a;
9  [a bla:0 6:7]; // expected-error {{expected ']'}}
10  [A foo bar]; // expected-error {{expected ':'}}
11  [A foo bar bar1]; // expected-error {{expected ':'}}
12  [] {}; // expected-error {{expected expression}}
13}
14