1a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s 2a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl 3a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redlvoid external(); 4a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl 5a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redlvoid target() throw(int) 6a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl{ 7a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl // CHECK: invoke void @_Z8externalv() 8a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl external(); 9a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl} 10285cfd8953d4ca4da613a47a0d691f7234068f8cBill Wendling// CHECK: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) 11285cfd8953d4ca4da613a47a0d691f7234068f8cBill Wendling// CHECK-NEXT: filter [1 x i8*] [i8* bitcast (i8** @_ZTIi to i8*)] 12285cfd8953d4ca4da613a47a0d691f7234068f8cBill Wendling// CHECK: call void @__cxa_call_unexpected 13