xref: /llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-objc/nsindexpath/main.m (revision fdea9a4ec9b0d9585b8fe8a612686d9f44f40ddc)
1#import <Foundation/Foundation.h>
2
3int main(int argc, const char **argv)
4{
5    @autoreleasepool
6    {
7        const NSUInteger values[] = { 1, 2, 3, 4, 5 };
8
9        NSIndexPath* indexPath1 = [NSIndexPath indexPathWithIndexes:values length:1];
10        NSIndexPath* indexPath2 = [NSIndexPath indexPathWithIndexes:values length:2];
11        NSIndexPath* indexPath3 = [NSIndexPath indexPathWithIndexes:values length:3];
12        NSIndexPath* indexPath4 = [NSIndexPath indexPathWithIndexes:values length:4];
13        NSIndexPath* indexPath5 = [NSIndexPath indexPathWithIndexes:values length:5];
14
15        NSLog(@"%@", indexPath1); // break here
16        NSLog(@"%@", indexPath2);
17        NSLog(@"%@", indexPath3);
18        NSLog(@"%@", indexPath4);
19        NSLog(@"%@", indexPath5);
20    }
21    return 0;
22}
23