[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / SemaCXX / delete-mismatch.h
blob84fcd611b60d60f91f4c421eff51db538c41c5b0
1 // Header for PCH test delete.cpp
2 namespace pch_test {
3 struct X {
4 int *a;
5 X();
6 X(int);
7 X(bool)
8 : a(new int[1]) { } // expected-note{{allocated with 'new[]' here}}
9 ~X()
11 delete a; // expected-warning{{'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?}}
12 // CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:9-[[@LINE-1]]:9}:"[]"