Lines Matching full:uninitialized
1 // RUN: %clang_cc1 -fsyntax-only -Wuninitialized -Wconditional-uninitialized -fsyntax-only -fblocks %s -verify
5 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
21 ++x; // expected-warning{{variable 'x' is uninitialized when used here}}
27 x = y; // expected-warning{{variable 'y' is uninitialized when used here}}
33 x += 2; // expected-warning{{variable 'x' is uninitialized when used here}}
41 return x; // expected-warning{{variable 'x' may be uninitialized when used here}}
60 return x; // expected-warning{{variable 'x' may be uninitialized when used here}}
68 return x; // expected-warning{{variable 'x' may be uninitialized when used here}}
76 return x; // expected-warning{{variable 'x' may be uninitialized when used here}}
80 for (unsigned i ; n ; ++i) ; // expected-warning{{variable 'i' may be uninitialized when used here}} expected-note{{variable 'i' is declared here}} expected-note{{add initialization to silence this warning}}
97 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
109 // Don't warn multiple times about the same uninitialized variable
112 *x = 1; // expected-warning{{variable 'x' is uninitialized when used here}}
137 return z; // expected-warning{{variable 'z' may be uninitialized when used here}}
144 return z; // expected-warning{{variable 'z' may be uninitialized when used here}}
162 // The basic uninitialized value analysis doesn't have enough path-sensitivity
172 return val; // expected-warning{{variable 'val' may be uninitialized when used here}}
177 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
183 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
194 return sizeof(int[len]); // expected-warning{{variable 'len' is uninitialized when used here}}
199 (void) ^{ (void) x; }; // expected-warning{{variable 'x' is uninitialized when captured by block}}
225 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
240 goto *pc; // expected-warning{{variable 'pc' may be uninitialized when used here}}
267 int z = x + y; // expected-warning {{variable 'y' is uninitialized when used here}}
274 return x ? 1 : y; // expected-warning {{variable 'y' is uninitialized when used here}}
280 return y; // expected-warning {{variable 'y' may be uninitialized when used here}}
292 test43_aux(x++); // expected-warning {{variable 'x' may be uninitialized when used here}}
300 x += y; // expected-warning {{variable 'y' may be uninitialized when used here}}
314 int j = i ? : 1; // expected-warning {{variable 'i' is uninitialized when used here}}
353 return x; // expected-warning {{variable 'x' may be uninitialized when used here}}
358 int y = (x); // expected-warning {{variable 'x' is uninitialized when used here}}
361 // This CFG caused the uninitialized values warning to inf-loop.
372 *len += new_len; // expected-warning {{variable 'new_len' may be uninitialized when used here}}