1 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -fobjc-exceptions -o - %s | FileCheck %s
8 // CHECK-LABEL: define{{.*}} void @_ZN5test03fooEv
9 // CHECK-SAME: personality ptr @__objc_personality_v0
12 // CHECK: invoke void @_Z6opaquev
15 // CHECK: landingpad { ptr, i32 }
16 // CHECK-NEXT: catch ptr @"OBJC_EHTYPE_$_OCType"
21 @interface NSException
28 throw [NSException new];
32 // CHECK: invoke void @objc_exception_throw(ptr [[CALL:%.*]]) [[NR:#[0-9]+]]
33 // CHECK: to label [[INVOKECONT1:%.*]] unwind label [[LPAD:%.*]]
36 // CHECK: attributes [[NR]] = { noreturn }