Home | History | Annotate | Download | only in rdar-3534688
      1 //===-- main.m ------------------------------------------------*- ObjC -*-===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 #import <Foundation/Foundation.h>
     11 
     12 int main (int argc, const char * argv[])
     13 {
     14     
     15     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     16     
     17 
     18 	NSArray* key = [NSArray arrayWithObjects:@"foo",nil];
     19 	NSArray* value = [NSArray arrayWithObjects:@"key",nil];
     20 	NSDictionary *dict = [NSDictionary dictionaryWithObjects:value forKeys:key];
     21 
     22     CFMutableBagRef mutable_bag_ref = CFBagCreateMutable(NULL, 15, NULL);
     23     CFBagSetValue(mutable_bag_ref, CFSTR("Hello world"));
     24 
     25     NSCountedSet *nscounted_set = [[NSCountedSet alloc] initWithCapacity:5];
     26     [nscounted_set addObject:@"foo"];
     27 
     28     NSMutableIndexSet *imset = [[NSMutableIndexSet alloc] init];
     29     [imset addIndex:4];
     30 
     31     CFBinaryHeapRef binheap_ref = CFBinaryHeapCreate(NULL, 15, &kCFStringBinaryHeapCallBacks, NULL);
     32     CFBinaryHeapAddValue(binheap_ref, CFSTR("Hello world"));
     33 
     34     NSSet* nsset = [[NSSet alloc] initWithObjects:@"foo",nil];
     35 
     36     NSData *immutableData = [[NSData alloc] initWithBytes:"HELLO" length:1];
     37 
     38 
     39     [pool drain];// Set break point at this line.
     40     return 0;
     41 }
     42 
     43