John McCall | 7ec404c | 2010-10-16 08:21:07 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fexceptions -O2 -o - %s | FileCheck %s |
2 | |||||
3 | // rdar://problem/8535238 | ||||
4 | // CHECK: declare void @objc_exception_rethrow() | ||||
5 | |||||
6 | void protos() { | ||||
7 | extern void foo(); | ||||
8 | @try { | ||||
9 | foo(); | ||||
10 | } @catch (id e) { | ||||
11 | @throw; | ||||
12 | } | ||||
13 | } | ||||
John McCall | fd186ac | 2010-10-16 16:34:08 +0000 | [diff] [blame] | 14 | |
15 | void throwing() { | ||||
16 | @throw(@"error!"); | ||||
17 | } |