summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/try.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/try.m b/clang/test/CodeGenObjC/try.m
new file mode 100644
index 00000000000..4148697dd01
--- /dev/null
+++ b/clang/test/CodeGenObjC/try.m
@@ -0,0 +1,9 @@
+// RUN: clang %s -S -o - -mtriple=i686-apple-darwin9 &&
+// RUN: clang %s -S -o - -mtriple=x86_64-apple-darwin9
+
+// rdar://6757213 - Don't crash if the internal proto for
+// __objc_personality_v0 mismatches with an actual one.
+void __objc_personality_v0() { }
+void test1(void) {
+ @try { } @catch (...) { }
+}
OpenPOWER on IntegriCloud