aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Rewriter/objc-modern-StretAPI-2.mm
blob: 6ac361b9a1f8457e5ca31285a8cdcdd1242f27d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// 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

extern "C" void *sel_registerName(const char *);
typedef unsigned long size_t;

typedef unsigned long NSUInteger;
typedef struct _NSRange {
    NSUInteger location;
    NSUInteger length;
} NSRange;


@interface NSIndexSet
- (NSRange)rangeAtIndex:(NSUInteger)rangeIndex;
@end

@interface NSArray
@end

@implementation NSArray
- (NSArray *)objectsAtIndexes:(NSIndexSet *)iset {

    NSUInteger ridx = 0;
    NSRange range = [iset rangeAtIndex:ridx];
    return 0;
}
@end