blob: 9f092b9ac7ca118baaf7e8a257d857594d0a6cb5 [file] [log] [blame]
Anders Carlssonabea9512011-02-28 00:40:07 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fcxx-exceptions -fexceptions -o - %s | FileCheck %s
John McCall5a180392010-07-24 00:37:23 +00002
3@interface OCType @end
4void opaque();
5
6namespace test0 {
7
8 // CHECK: define void @_ZN5test03fooEv
9 void foo() {
10 try {
11 // CHECK: invoke void @_Z6opaquev
12 opaque();
13 } catch (OCType *T) {
Bill Wendling285cfd82011-09-19 20:31:14 +000014 // CHECK: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__objc_personality_v0 to i8*)
15 // CHECK-NEXT: catch %struct._objc_typeinfo* @"OBJC_EHTYPE_$_OCType"
John McCall5a180392010-07-24 00:37:23 +000016 }
17 }
18}