Anders Carlsson | 3320e15 | 2011-02-22 01:52:06 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fexceptions -fobjc-exceptions -O2 -o - %s | FileCheck %s |
John McCall | 17afe45 | 2010-10-16 08:21:07 +0000 | [diff] [blame] | 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 | d509182 | 2010-10-16 16:34:08 +0000 | [diff] [blame] | 14 | |
| 15 | void throwing() { |
| 16 | @throw(@"error!"); |
| 17 | } |