llvm-for-llvmta/tools/clang/test/Parser/objc-messaging-neg-1.m

14 lines
316 B
Mathematica
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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}}
}