diff options
Diffstat (limited to 'test/SemaCXX/uninit-variables.cpp')
-rw-r--r-- | test/SemaCXX/uninit-variables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/uninit-variables.cpp b/test/SemaCXX/uninit-variables.cpp index 0d6920ceb3..6d2956296a 100644 --- a/test/SemaCXX/uninit-variables.cpp +++ b/test/SemaCXX/uninit-variables.cpp @@ -33,11 +33,11 @@ unsigned test3_b() { return x; // no-warning } unsigned test3_c() { - unsigned x ; + unsigned x ; // expected-warning{{use of uninitialized variable 'x'}} const bool flag = false; if (flag && (x = test3_aux()) == 0) { x = 1; } - return x; // expected-warning{{use of uninitialized variable 'x'}} + return x; // expected-note{{variable 'x' is possibly uninitialized when used here}} } |