[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / threadsafe-statics-exceptions.cpp
blob52fb469686ed7ca7dddf9f2309ce332a7971ee59
1 // RUN: %clang_cc1 -emit-llvm -o - -fcxx-exceptions -fexceptions -triple x86_64-apple-darwin10 %s | FileCheck %s
3 struct X {
4 X();
5 ~X();
6 };
8 struct Y { };
10 // CHECK-LABEL: define{{.*}} void @_Z1fv
11 // CHECK-SAME: personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
12 void f() {
13 // CHECK: call i32 @__cxa_guard_acquire(i64* @_ZGVZ1fvE1x)
14 // CHECK: invoke void @_ZN1XC1Ev
15 // CHECK: call i32 @__cxa_atexit
16 // CHECK-NEXT: call void @__cxa_guard_release(i64* @_ZGVZ1fvE1x)
17 // CHECK: br
18 static X x;
20 // CHECK: call i8* @__cxa_allocate_exception
21 // CHECK: call void @__cxa_throw
22 throw Y();
24 // Finally, the landing pad.
25 // CHECK: landingpad { i8*, i32 }
26 // CHECK: cleanup
27 // CHECK: call void @__cxa_guard_abort(i64* @_ZGVZ1fvE1x)
28 // CHECK: resume { i8*, i32 }