Lines Matching full:condition
15 if (x = 7) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
20 } while (x = 7); // expected-warning {{using the result of an assignment as a condition without parentheses}} \
25 while (x = 7) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
30 for (; x = 7; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
35 if (p = p) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
40 } while (p = p); // expected-warning {{using the result of an assignment as a condition without parentheses}} \
45 while (p = p) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
49 for (; p = p; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
61 if (x = (b+b).foo()) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
66 } while (x = (b+b).foo()); // expected-warning {{using the result of an assignment as a condition without parentheses}} \
71 while (x = (b+b).foo()) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
75 for (; x = (b+b).foo(); ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
81 if (a = b + b) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
86 } while (a = b + b); // expected-warning {{using the result of an assignment as a condition without parentheses}} \
91 while (a = b + b) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
95 for (; a = b + b; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
101 if (x |= 2) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
105 if (a |= b) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \