xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/blocks-4.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -fobjc-exceptions -fblocks -o %t %s
2*f4a2713aSLionel Sambuc// rdar://7590273
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambucvoid EXIT(id e);
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc@interface NSBlockOperation {
7*f4a2713aSLionel Sambuc}
8*f4a2713aSLionel Sambuc+(id)blockOperationWithBlock:(void (^)(void))block ;
9*f4a2713aSLionel Sambuc@end
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambucvoid FUNC() {
12*f4a2713aSLionel Sambuc        [NSBlockOperation blockOperationWithBlock:^{
13*f4a2713aSLionel Sambuc            @try {
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel Sambuc            }
16*f4a2713aSLionel Sambuc            @catch (id exception) {
17*f4a2713aSLionel Sambuc		EXIT(exception);
18*f4a2713aSLionel Sambuc            }
19*f4a2713aSLionel Sambuc        }];
20*f4a2713aSLionel Sambuc
21*f4a2713aSLionel Sambuc}
22