1 //===-- main.m ------------------------------------------------*- ObjC -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #import <Foundation/Foundation.h>
11 int main(int argc, const char **argv)
15 const NSUInteger values[] = { 1, 2, 3, 4, 5 };
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];
23 NSLog(@"%@", indexPath1); // break here
24 NSLog(@"%@", indexPath2);
25 NSLog(@"%@", indexPath3);
26 NSLog(@"%@", indexPath4);
27 NSLog(@"%@", indexPath5);