[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Analysis / diagnostics / explicit-suppression.cpp
blobb98d0260b096594676243ed3ce3ea80754da4d18
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-config suppress-c++-stdlib=false -verify %s
2 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-config suppress-c++-stdlib=true -DSUPPRESSED=1 -verify %s
3 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -DSUPPRESSED=1 -verify %s
5 #ifdef SUPPRESSED
6 // expected-no-diagnostics
7 #endif
9 #include "../Inputs/system-header-simulator-cxx.h"
11 void clang_analyzer_eval(bool);
13 class C {
14 // The virtual function is to make C not trivially copy assignable so that we call the
15 // variant of std::copy() that does not defer to memmove().
16 virtual int f();
19 void testCopyNull(C *I, C *E) {
20 std::copy(I, E, (C *)0);
21 #ifndef SUPPRESSED
22 // expected-warning@../Inputs/system-header-simulator-cxx.h:741 {{Called C++ object pointer is null}}
23 #endif