summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/blocks-4.m
blob: d945ed44fac0750d11388b2049c4862dc11a2cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -fblocks -o %t %s
// rdar://7590273

void EXIT(id e);

@interface NSBlockOperation {
}
+(id)blockOperationWithBlock:(void (^)(void))block ;
@end

void FUNC() {
        [NSBlockOperation blockOperationWithBlock:^{
            @try {

            }
            @catch (id exception) {
		EXIT(exception);
            }
        }];

}
OpenPOWER on IntegriCloud