2017-06-20 01:53:21 +08:00
|
|
|
// RUN: %clang_cc1 -verify -Wno-objc-root-class %s
|
|
|
|
|
|
|
|
@interface ClassA
|
|
|
|
|
|
|
|
- (void)fileExistsAtPath:(int)x;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface ClassB
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation ClassB // expected-note {{implementation started here}}
|
|
|
|
|
|
|
|
- (void) method:(ClassA *)mgr { // expected-note {{to match this '{'}}
|
2017-06-21 00:16:11 +08:00
|
|
|
[mgr fileExistsAtPath:0
|
2017-06-20 01:53:21 +08:00
|
|
|
} // expected-error {{expected ']'}}
|
|
|
|
|
2017-06-21 00:12:26 +08:00
|
|
|
@interface ClassC // \
|
|
|
|
// expected-error {{missing '@end'}} \
|
|
|
|
// expected-error {{expected '}'}}
|
2017-06-20 01:53:21 +08:00
|
|
|
|
|
|
|
@end
|