Lines Matching full:logical
37 return x && 4; // expected-warning {{use of logical '&&' with constant operand}} \
41 return x && sizeof(int) == 4; // no warning, RHS is logical op.
47 return x && (unsigned)0; // expected-warning {{use of logical '&&' with constant operand}} \
51 return x || (unsigned)1; // expected-warning {{use of logical '||' with constant operand}} \
54 return x || 0; // expected-warning {{use of logical '||' with constant operand}} \
56 return x || 1; // expected-warning {{use of logical '||' with constant operand}} \
58 return x || -1; // expected-warning {{use of logical '||' with constant operand}} \
60 return x || 5; // expected-warning {{use of logical '||' with constant operand}} \
62 return x && 0; // expected-warning {{use of logical '&&' with constant operand}} \
65 return x && 1; // expected-warning {{use of logical '&&' with constant operand}} \
68 return x && -1; // expected-warning {{use of logical '&&' with constant operand}} \
71 return x && 5; // expected-warning {{use of logical '&&' with constant operand}} \
74 return x || (0); // expected-warning {{use of logical '||' with constant operand}} \
76 return x || (1); // expected-warning {{use of logical '||' with constant operand}} \
78 return x || (-1); // expected-warning {{use of logical '||' with constant operand}} \
80 return x || (5); // expected-warning {{use of logical '||' with constant operand}} \
82 return x && (0); // expected-warning {{use of logical '&&' with constant operand}} \
85 return x && (1); // expected-warning {{use of logical '&&' with constant operand}} \
88 return x && (-1); // expected-warning {{use of logical '&&' with constant operand}} \
91 return x && (5); // expected-warning {{use of logical '&&' with constant operand}} \
100 e2 = A && 7 // expected-warning {{use of logical '&&' with constant operand}} \
107 int y = B && 3; // expected-warning {{use of logical '&&' with constant operand}} \
135 bool r2 = X || Y2; // expected-warning {{use of logical '||' with constant operand}} \