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 14 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 15 16 17 NSMutableArray* arr = [[NSMutableArray alloc] init]; 18 [arr addObject:@"hello"]; 19 [arr addObject:@"world"]; 20 [arr addObject:@"this"]; 21 [arr addObject:@"is"]; 22 [arr addObject:@"me"]; 23 [arr addObject:[NSURL URLWithString:@"http://www.apple.com/"]]; 24 25 NSDate *aDate = [NSDate distantFuture]; 26 NSValue *aValue = [NSNumber numberWithInt:5]; 27 NSString *aString = @"a string"; 28 29 NSArray *other_arr = [NSArray arrayWithObjects:aDate, aValue, aString, arr, nil]; 30 31 [pool drain];// Set break point at this line. 32 return 0; 33} 34 35