Home | History | Annotate | Download | only in Analysis

Lines Matching defs:zero

9   int x = 10, zero = 0, one = 1;
34 test(x + zero); // expected-warning {{The right operand to '+' is always 0}}
35 test(x - zero); // expected-warning {{The right operand to '-' is always 0}}
36 test(x * zero); // expected-warning {{The right operand to '*' is always 0}}
37 test(x & zero); // expected-warning {{The right operand to '&' is always 0}}
38 test(x | zero); // expected-warning {{The right operand to '|' is always 0}}
39 test(x ^ zero); // expected-warning {{The right operand to '^' is always 0}}
40 test(x << zero); // expected-warning {{The right operand to '<<' is always 0}}
41 test(x >> zero); // expected-warning {{The right operand to '>>' is always 0}}
44 test(zero + x); // expected-warning {{The left operand to '+' is always 0}}
45 test(zero - x); // expected-warning {{The left operand to '-' is always 0}}
46 test(zero / x); // expected-warning {{The left operand to '/' is always 0}}
47 test(zero * x); // expected-warning {{The left operand to '*' is always 0}}
48 test(zero & x); // expected-warning {{The left operand to '&' is always 0}}
49 test(zero | x); // expected-warning {{The left operand to '|' is always 0}}
50 test(zero ^ x); // expected-warning {{The left operand to '^' is always 0}}
51 test(zero << x); // expected-warning {{The left operand to '<<' is always 0}}
52 test(zero >> x); // expected-warning {{The left operand to '>>' is always 0}}
56 zero = 2;
59 return x + zero + one;
178 int zero = 0; // pseudo-constant
241 // Don't crash when trying to create a "zero" float.