blob: 57ed1d9da9dd2e53c0de6759cdd8cfde58e49454 [file] [log] [blame]
John McCall7ec404c2010-10-16 08:21:07 +00001// 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
6void protos() {
7 extern void foo();
8 @try {
9 foo();
10 } @catch (id e) {
11 @throw;
12 }
13}
John McCallfd186ac2010-10-16 16:34:08 +000014
15void throwing() {
16 @throw(@"error!");
17}