diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-08 06:33:38 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-08 06:33:38 +0000 |
commit | f04eb2de1f17dce4dfaebbf9002844087b7d357d (patch) | |
tree | 19bdf4c2cecb4285a629a2e6a3dfac917f6ca6a5 /test/SemaCXX/uninit-variables.cpp | |
parent | 089f872fedb175f7569f24f1dba362ffbc403528 (diff) |
Now that the analyzer is distinguishing between uninitialized uses that
definitely have a path leading to them, and possibly have a path leading
to them; reflect that distinction in the warning text emitted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129126 91177308-0d34-0410-b5e6-96231b3b80d8
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 777734c825..9b8db6ff2c 100644 --- a/test/SemaCXX/uninit-variables.cpp +++ b/test/SemaCXX/uninit-variables.cpp @@ -38,7 +38,7 @@ unsigned test3_c() { if (flag && (x = test3_aux()) == 0) { x = 1; } - return x; // expected-warning{{variable 'x' is possibly uninitialized when used here}} + return x; // expected-warning{{variable 'x' is uninitialized when used here}} } enum test4_A { @@ -46,7 +46,7 @@ enum test4_A { }; test4_A test4() { test4_A a; // expected-note{{variable 'a' is declared here}} - return a; // expected-warning{{variable 'a' is possibly uninitialized when used here}} + return a; // expected-warning{{variable 'a' is uninitialized when used here}} } // This test previously crashed Sema. |