1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp 2 // RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp 3 // rdar://12142241 4 5 extern "C" void *sel_registerName(const char *); 6 typedef unsigned long size_t; 7 8 typedef unsigned long NSUInteger; 9 typedef struct _NSRange { 10 NSUInteger location; 11 NSUInteger length; 12 } NSRange; 13 14 15 @interface NSIndexSet 16 - (NSRange)rangeAtIndex:(NSUInteger)rangeIndex; 17 @end 18 19 @interface NSArray 20 @end 21 22 @implementation NSArray 23 - (NSArray *)objectsAtIndexes:(NSIndexSet *)iset { 24 25 NSUInteger ridx = 0; 26 NSRange range = [iset rangeAtIndex:ridx]; 27 return 0; 28 } 29 @end 30 31