brintos

brintos / llvm-project-archived public Read only

0
0
Text · 432 B · 3a574a1 Raw
28 lines · plain
1// RUN: %clang_cc1 -Wselector -x objective-c %s -include %s -verify2// expected-no-diagnostics3 4#ifndef INCLUDED5#define INCLUDED6 7#pragma clang system_header8 9@interface NSObject @end10@interface NSString @end11 12@interface NSString (NSStringExtensionMethods)13- (void)compare:(NSString *)string;14@end15 16@interface MyObject : NSObject17@end18 19#else20int main(void) {21    (void)@selector(compare:);22}23 24@implementation MyObject25 26@end27#endif28