1//===-- main.m ------------------------------------------------*- ObjC -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#import <Foundation/Foundation.h>
10
11int main(int argc, const char **argv)
12{
13    @autoreleasepool
14    {
15        const NSUInteger values[] = { 1, 2, 3, 4, 5 };
16
17        NSIndexPath* indexPath1 = [NSIndexPath indexPathWithIndexes:values length:1];
18        NSIndexPath* indexPath2 = [NSIndexPath indexPathWithIndexes:values length:2];
19        NSIndexPath* indexPath3 = [NSIndexPath indexPathWithIndexes:values length:3];
20        NSIndexPath* indexPath4 = [NSIndexPath indexPathWithIndexes:values length:4];
21        NSIndexPath* indexPath5 = [NSIndexPath indexPathWithIndexes:values length:5];
22
23        NSLog(@"%@", indexPath1); // break here
24        NSLog(@"%@", indexPath2);
25        NSLog(@"%@", indexPath3);
26        NSLog(@"%@", indexPath4);
27        NSLog(@"%@", indexPath5);
28    }
29    return 0;
30}
31