[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / SemaCXX / cxx11-unused.cpp
blob1e25bd5157247152ffab4651071f44b383ba6f85
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wunused-parameter
3 // PR19303 : Make sure we don't get a unused expression warning for deleted and
4 // defaulted functions
6 // expected-no-diagnostics
8 class A {
9 public:
10 int x;
11 A() = default;
12 ~A() = default;
13 A(const A &other) = delete;
15 template <typename T>
16 void SetX(T x) {
17 this->x = x;
20 void SetX1(int x);
23 template <>
24 void A::SetX(A x) = delete;
26 class B {
27 public:
28 B() = default;
29 ~B() = default;
30 B(const B &other);
33 B::B(const B &other) = default;