summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2013-01-11 15:33:01 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2013-01-11 15:33:01 +0000
commit2ec1b10d8e68636c967d21bbf53d1cdb323d3f89 (patch)
tree0c192b1828c5c60cafa6fe6256c8e957a932308f /clang/test/CodeGenObjC
parent7381db059a34f487a93a37f2741f3252ef923aae (diff)
downloadbcm5719-llvm-2ec1b10d8e68636c967d21bbf53d1cdb323d3f89.tar.gz
bcm5719-llvm-2ec1b10d8e68636c967d21bbf53d1cdb323d3f89.zip
Enable the new (more C++-like, less broken) EH model when targeting the GNUstep
Objective-C runtime 1.7 or greater. llvm-svn: 172207
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/gnu-exceptions.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/gnu-exceptions.m b/clang/test/CodeGenObjC/gnu-exceptions.m
index b7d0adbc6d6..4a046e21347 100644
--- a/clang/test/CodeGenObjC/gnu-exceptions.m
+++ b/clang/test/CodeGenObjC/gnu-exceptions.m
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm -fexceptions -fobjc-exceptions -fobjc-runtime=gcc -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-unknown-freebsd -emit-llvm -fexceptions -fobjc-exceptions -fobjc-runtime=gnustep-1.7 -o - %s | FileCheck -check-prefix=NEW-ABI %s
void opaque(void);
void log(int i);
@@ -21,6 +22,8 @@ void test0() {
// CHECK: call void @log(i32 0)
// CHECK: resume
+ // NEW-ABI: objc_begin_catch
+ // NEW-ABI: objc_end_catch
log(0);
}
OpenPOWER on IntegriCloud