1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp 2*f4a2713aSLionel Sambuc// 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*f4a2713aSLionel Sambuc// rdar://12142241 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambucextern "C" void *sel_registerName(const char *); 6*f4a2713aSLionel Sambuctypedef unsigned long size_t; 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuctypedef unsigned long NSUInteger; 9*f4a2713aSLionel Sambuctypedef struct _NSRange { 10*f4a2713aSLionel Sambuc NSUInteger location; 11*f4a2713aSLionel Sambuc NSUInteger length; 12*f4a2713aSLionel Sambuc} NSRange; 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuc@interface NSIndexSet 16*f4a2713aSLionel Sambuc- (NSRange)rangeAtIndex:(NSUInteger)rangeIndex; 17*f4a2713aSLionel Sambuc@end 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc@interface NSArray 20*f4a2713aSLionel Sambuc@end 21*f4a2713aSLionel Sambuc 22*f4a2713aSLionel Sambuc@implementation NSArray 23*f4a2713aSLionel Sambuc- (NSArray *)objectsAtIndexes:(NSIndexSet *)iset { 24*f4a2713aSLionel Sambuc 25*f4a2713aSLionel Sambuc NSUInteger ridx = 0; 26*f4a2713aSLionel Sambuc NSRange range = [iset rangeAtIndex:ridx]; 27*f4a2713aSLionel Sambuc return 0; 28*f4a2713aSLionel Sambuc} 29*f4a2713aSLionel Sambuc@end 30*f4a2713aSLionel Sambuc 31