1 // RUN: clang-cc -fsyntax-only -verify %s
4 void do_something(int);
10 do_something(X); // expected-warning{{'X' is always zero in this context}}
20 do_something(Y); // expected-warning{{'Y' is always zero in this context}}
24 if (bool B2 = B) { // expected-warning{{'B' is always false in this context}}
25 do_something(B); // expected-warning{{'B' is always false in this context}}
26 } else if (B2) { // expected-warning{{'B2' is always false in this context}}
27 do_something(B); // expected-warning{{'B' is always false in this context}}
29 return B; // expected-warning{{'B' is always false in this context}}