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