summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/exceptions-nonfragile.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/exceptions-nonfragile.m')
-rw-r--r--clang/test/CodeGenObjC/exceptions-nonfragile.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/exceptions-nonfragile.m b/clang/test/CodeGenObjC/exceptions-nonfragile.m
new file mode 100644
index 00000000000..41cda2c0a9c
--- /dev/null
+++ b/clang/test/CodeGenObjC/exceptions-nonfragile.m
@@ -0,0 +1,13 @@
+// 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;
+ }
+}
OpenPOWER on IntegriCloud