brintos

brintos / llvm-project-archived public Read only

0
0
Text · 754 B · a0cc845 Raw
40 lines · plain
1// RUN: cp %s %t2// RUN: %clang_cc1 -x objective-c -Wundeclared-selector -Wno-int-conversion -fixit %t3// RUN: %clang_cc1 -x objective-c -Wundeclared-selector -Wno-int-conversion -Werror %t4 5@interface NSObject @end6 7@interface LogoutController : NSObject8- (void)close;9- (void)closed;10- (void) open : (id) file_id;11@end12 13@implementation LogoutController14 15- (void)close  { }16- (void)closed  { }17 18- (SEL)Meth19{20  return @selector(cloze);21}22- (void) open : (id) file_id {}23 24- (SEL)Meth125{26  return @selector(ope:);27}28 29@end30 31@interface rdar7853549 : NSObject32- (int) bounds;33@end34 35@implementation rdar785354936- (int) bounds { return 0; }37- (void)PrivateMeth { int bounds = [self bonds]; }38- (void)OtherPrivateMeth : (id) p { int bounds = [p bonds]; }39@end40