#import <Foundation/Foundation.h>
#import "dummy.h"

@implementation dummyObj

-(void)doDummy: (NSDictionary *)theDict {
        NSMutableDictionary *inglober = [[NSMutableDictionary alloc] initWithCapacity: 3];

/*
   Choose one of these lines for your tests:

        [inglober setObject: [theDict copy] forKey: @"foo"]; // SIGSEGV
        [inglober setObject: theDict forKey: @"foo"]; // SIGSEGV
        [inglober setObject: [NSDictionary dictionaryWithDictionary: theDict] forKey: @"foo"]; // SIGSEGV
        [inglober setObject: [[NSDictionary alloc] initWithDictionary: theDict copyItems: YES] forKey: @"foo"]; //SIGSEGV
*/


        [inglober writeToFile: @"/tmp/501" atomically: YES];
        printf("successfull\n");
}

@end

