f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
13 lines
316 B
Objective-C
13 lines
316 B
Objective-C
// 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}}
|
|
}
|