]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenObjC/blocks-4.m
Vendor import of clang release_30 branch r142614:
[FreeBSD/FreeBSD.git] / test / CodeGenObjC / blocks-4.m
1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi -emit-llvm -fobjc-exceptions -fblocks -o %t %s
2 // rdar://7590273
3
4 void EXIT(id e);
5
6 @interface NSBlockOperation {
7 }
8 +(id)blockOperationWithBlock:(void (^)(void))block ;
9 @end
10
11 void FUNC() {
12         [NSBlockOperation blockOperationWithBlock:^{
13             @try {
14
15             }
16             @catch (id exception) {
17                 EXIT(exception);
18             }
19         }];
20
21 }