From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/CodeGenObjC/try.m | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/CodeGenObjC/try.m (limited to 'clang/test/CodeGenObjC/try.m') diff --git a/clang/test/CodeGenObjC/try.m b/clang/test/CodeGenObjC/try.m new file mode 100644 index 0000000..56b8e64 --- /dev/null +++ b/clang/test/CodeGenObjC/try.m @@ -0,0 +1,10 @@ +// REQUIRES: x86-registered-target,x86-64-registered-target +// RUN: %clang_cc1 %s -fobjc-exceptions -S -o - -triple=i686-apple-darwin9 +// RUN: %clang_cc1 %s -fobjc-exceptions -S -o - -triple=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 (...) { } +} -- cgit v1.2.3