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
11 // CHECK: invoke void @_Z6opaquev
14 // CHECK: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__objc_personality_v0 to i8*)
15 // CHECK-NEXT: catch %struct._objc_typeinfo* @"OBJC_EHTYPE_$_OCType"
21 @interface NSException
28 throw [NSException new];
32 // CHECK: invoke void @objc_exception_throw(i8* [[CALL:%.*]]) [[NR:#[0-9]+]]
33 // CHECK: to label [[INVOKECONT1:%.*]] unwind label [[LPAD:%.*]]
36 // CHECK: attributes [[NR]] = { noreturn }