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 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. |