1 // RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core,debug.ExprInspection -verify %s
3 void clang_analyzer_eval(bool);
8 clang_analyzer_eval(a
== 1); // expected-warning{{TRUE}}
9 } // expected-warning{{non-void function does not return a value}}
26 clang_analyzer_eval(*x
== i
); // expected-warning{{TRUE}}
30 clang_analyzer_eval(*x
== 2); // expected-warning{{TRUE}}
31 clang_analyzer_eval(i
== 2); // expected-warning{{TRUE}}