John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -fobjc-exceptions -fblocks -o %t %s |
Fariborz Jahanian | 2f764f1 | 2010-02-03 00:01:43 +0000 | [diff] [blame] | 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 | } |