23 lines · cpp
1// RUN: %clang_cc1 %s -std=c++11 -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s2 3void external();4 5void target() noexcept6{7 // CHECK: invoke void @_Z8externalv()8 external();9}10// CHECK: [[T0:%.*]] = landingpad { ptr, i32 }11// CHECK-NEXT: catch ptr null12// CHECK-NEXT: [[T1:%.*]] = extractvalue { ptr, i32 } [[T0]], 013// CHECK-NEXT: call void @__clang_call_terminate(ptr [[T1]]) [[NR_NUW:#[0-9]+]]14// CHECK-NEXT: unreachable15 16void reverse() noexcept(false)17{18 // CHECK: call void @_Z8externalv()19 external();20}21 22// CHECK: attributes [[NR_NUW]] = { noreturn nounwind }23