1*f4a2713aSLionel Sambuc// RUN: %clang -fexceptions -S -emit-llvm %s -o - 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc@interface B 4*f4a2713aSLionel Sambuc-(int)bar; 5*f4a2713aSLionel Sambuc@end 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc@interface A 8*f4a2713aSLionel Sambuc-(void) Foo:(int) state; 9*f4a2713aSLionel Sambuc@end 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc@implementation A 12*f4a2713aSLionel Sambuc- (void) Foo:(int) state { 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc int wasResponded = 0; 15*f4a2713aSLionel Sambuc @try { 16*f4a2713aSLionel Sambuc if (state) { 17*f4a2713aSLionel Sambuc B * b = 0; 18*f4a2713aSLionel Sambuc @try { } 19*f4a2713aSLionel Sambuc @finally { 20*f4a2713aSLionel Sambuc wasResponded = ![b bar]; 21*f4a2713aSLionel Sambuc } 22*f4a2713aSLionel Sambuc } 23*f4a2713aSLionel Sambuc } 24*f4a2713aSLionel Sambuc @finally { 25*f4a2713aSLionel Sambuc } 26*f4a2713aSLionel Sambuc} 27*f4a2713aSLionel Sambuc@end 28