[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Analysis / NewDelete-variadic.cpp
blob523785a70415b154c26e7aabe00ee3fec8e241f3
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete,cplusplus.NewDeleteLeaks,unix.Malloc -std=c++11 -fblocks -verify %s
2 // expected-no-diagnostics
4 namespace std {
5 typedef __typeof__(sizeof(int)) size_t;
8 struct X {};
10 void *operator new(std::size_t, X, ...);
11 void *operator new[](std::size_t, X, ...);
13 void testGlobalCustomVariadicNew() {
14 X x;
16 void *p1 = operator new(0, x); // no warn
18 void *p2 = operator new[](0, x); // no warn
20 int *p3 = new (x) int; // no warn
22 int *p4 = new (x) int[0]; // no warn