1/* 2 * Copyright (c) 2010 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LLVM_LICENSE_HEADER@ 5 */ 6 7// 8// escape5.m 9// btest 10// 11// Created by Apple on 6/12/08. 12// Copyright 2008 __MyCompanyName__. All rights reserved. 13// 14 15 16#import "common.h" 17 18 19 20void willThrow() { 21 @throw [NSException exceptionWithName:@"funny" reason:@"nothing" userInfo:nil]; 22} 23void innocent() { 24 __block int i; 25 @try { 26 lastUse(i); 27 willThrow(); 28 } 29 @finally { 30 } 31} 32 33void test(void) { 34 @try { 35 innocent(); 36 } 37 @catch(...) { 38 } 39} 40 41 42