[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Analysis / conditional-operator.cpp
blob5060ec0c804f9c187a58fd3c9179a059339a5da8
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-config eagerly-assume=false %s -analyzer-output=text -verify
3 void clang_analyzer_eval(bool);
5 // Test that the analyzer does not crash on GNU extension operator "?:".
6 void NoCrashTest(int x, int y) {
7 int w = x ?: y;
10 void OperatorEvaluationTest(int y) {
11 int x = 1;
12 int w = x ?: y; // expected-note {{'?' condition is true}}
14 // TODO: We are not precise when processing the "?:" operator in C++.
15 clang_analyzer_eval(w == 1); // expected-warning{{UNKNOWN}}
16 // expected-note@-1{{UNKNOWN}}