escape6.m   [plain text]


//
//  escape5.m
//  btest
//
//  Created by Apple on 6/12/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//


#import "common.h"



void willThrow() {
    @throw [NSException exceptionWithName:@"funny" reason:@"nothing" userInfo:nil];
}
void innocent() {
    __block int i;
    @try {
        lastUse(i);
        willThrow();
    }
    @finally {
    }
}

void test(void) {
	@try {
            innocent();
        }
        @catch(...) {
        }
}