1 // RUN: %clang_cc1 -emit-llvm -o - -fcxx-exceptions -fexceptions -triple x86_64-apple-darwin10 %s | FileCheck %s
10 // CHECK-LABEL: define{{.*}} void @_Z1fv
11 // CHECK-SAME: personality ptr @__gxx_personality_v0
13 // CHECK: call i32 @__cxa_guard_acquire(ptr @_ZGVZ1fvE1x)
14 // CHECK: invoke void @_ZN1XC1Ev
15 // CHECK: call i32 @__cxa_atexit
16 // CHECK-NEXT: call void @__cxa_guard_release(ptr @_ZGVZ1fvE1x)
20 // CHECK: call ptr @__cxa_allocate_exception
21 // CHECK: call void @__cxa_throw
24 // Finally, the landing pad.
25 // CHECK: landingpad { ptr, i32 }
27 // CHECK: call void @__cxa_guard_abort(ptr @_ZGVZ1fvE1x)
28 // CHECK: resume { ptr, i32 }