1 // RUN: %clang_cc1 -Wselector -x objective-c %s -include %s -verify 2 // expected-no-diagnostics 3 // rdar://16600230 4 5 #ifndef INCLUDED 6 #define INCLUDED 7 8 #pragma clang system_header 9 10 @interface NSObject @end 11 @interface NSString @end 12 13 @interface NSString (NSStringExtensionMethods) 14 - (void)compare:(NSString *)string; 15 @end 16 17 @interface MyObject : NSObject 18 @end 19 20 #else 21 int main() { 22 (void)@selector(compare:); 23 } 24 25 @implementation MyObject 26 27 @end 28 #endif 29