diff options
Diffstat (limited to 'test/CodeGenObjC/exceptions-nonfragile.m')
-rw-r--r-- | test/CodeGenObjC/exceptions-nonfragile.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGenObjC/exceptions-nonfragile.m b/test/CodeGenObjC/exceptions-nonfragile.m new file mode 100644 index 0000000..57ed1d9 --- /dev/null +++ b/test/CodeGenObjC/exceptions-nonfragile.m @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fexceptions -O2 -o - %s | FileCheck %s + +// rdar://problem/8535238 +// CHECK: declare void @objc_exception_rethrow() + +void protos() { + extern void foo(); + @try { + foo(); + } @catch (id e) { + @throw; + } +} + +void throwing() { + @throw(@"error!"); +} |