[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / CodeGenObjCXX / exceptions.mm
blob00de88c15220b29256e30a4b166e8739061027ca
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fexceptions -o - %s | FileCheck %s
3 @interface OCType @end
4 void opaque();
6 namespace test0 {
8   // CHECK: define void @_ZN5test03fooEv
9   void foo() {
10     try {
11       // CHECK: invoke void @_Z6opaquev
12       opaque();
13     } catch (OCType *T) {
14       // CHECK: call i32 (i8*, i8*, ...)* @llvm.eh.selector({{.*}} @__objc_personality_v0 {{.*}} @"OBJC_EHTYPE_$_OCType"
15     }
16   }