1762bb9d0ad20320b9f97a841dce57ba5e8e48b07Richard Smith// RUN: %clang_cc1 %s -std=c++11 -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s 2a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl 3a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redlvoid external(); 4a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl 5a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redlvoid target() noexcept 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: catch i8* null 12a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl// CHECK-NEXT: call void @_ZSt9terminatev() noreturn nounwind 13a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl// CHECK-NEXT: unreachable 14a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl 15a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redlvoid reverse() noexcept(false) 16a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl{ 17a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl // CHECK: call void @_Z8externalv() 18a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl external(); 19a968e97947b1281c3bb3c4d47a952b3801d9bb02Sebastian Redl} 20