brintos

brintos / llvm-project-archived public Read only

0
0
Text · 664 B · 52f7dc5 Raw
26 lines · plain
1#import <Foundation/Foundation.h>2 3int main (int argc, const char * argv[])4{5    6    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];7 8	NSSet* set = [NSSet setWithArray:@[@1,@"hello",@2,@"world"]];9	NSMutableSet* mutable = [NSMutableSet setWithCapacity:5];10	[mutable addObject:@1];11	[mutable addObject:@2];12	[mutable addObject:@3];13	[mutable addObject:@4];14	[mutable addObject:@5];15	[mutable addObject:[NSURL URLWithString:@"www.apple.com"]];16	[mutable addObject:@[@1,@2,@3]];17	[mutable unionSet:set];18	[mutable removeAllObjects]; // Set break point at this line.19	[mutable unionSet:set];20	[mutable addObject:@1];21 22    [pool drain];23    return 0;24}25 26