blob: 280b5d416ffac98e74f49ac9cbc6b62f24a45af8 [file] [log] [blame]
Anders Carlsson3320e152011-02-22 01:52:06 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fexceptions -fobjc-exceptions -O2 -o - %s | FileCheck %s
John McCall17afe452010-10-16 08:21:07 +00002
3// rdar://problem/8535238
4// CHECK: declare void @objc_exception_rethrow()
5
6void protos() {
7 extern void foo();
8 @try {
9 foo();
10 } @catch (id e) {
11 @throw;
12 }
13}
John McCalld5091822010-10-16 16:34:08 +000014
15void throwing() {
16 @throw(@"error!");
17}