[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / implicit-exception-spec.cpp
blobe1a969ab277fc82bd3059f3a5eea854826f120c6
1 // RUN: %clang_cc1 %s -triple=x86_64-linux-gnu -emit-llvm -std=c++11 -o - -fcxx-exceptions -fexceptions | FileCheck %s
3 struct A {
4 A();
5 A(const A&);
6 A(A&&);
7 };
8 struct B : virtual A {
9 virtual void f() = 0;
11 struct C : B {
12 void f();
15 // CHECK-DAG: define {{.*}} @_ZN1BC2Ev({{.*}} #[[NOUNWIND:[0-9]*]]
16 C c1;
17 // CHECK-DAG: define {{.*}} @_ZN1BC2ERKS_({{.*}} #[[NOUNWIND]]
18 C c2(c1);
19 // CHECK-DAG: define {{.*}} @_ZN1BC2EOS_({{.*}} #[[NOUNWIND]]
20 C c3(static_cast<C&&>(c1));
22 // CHECK-DAG: #[[NOUNWIND]] = {{{.*}} nounwind