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