Fix test to test the right thing.
llvm-svn: 127803
diff --git a/clang/test/SemaCXX/uninit-variables-conditional.cpp b/clang/test/SemaCXX/uninit-variables-conditional.cpp
index 1a82285..257a9b5 100644
--- a/clang/test/SemaCXX/uninit-variables-conditional.cpp
+++ b/clang/test/SemaCXX/uninit-variables-conditional.cpp
@@ -16,8 +16,8 @@
// -Wuninitialized.
double test() {
double x; // expected-note {{variable 'x' is declared here}} expected-note{{add initialization to silence this warning}}
- if (bar() || baz() || Foo() || init(&x)) {
- return x; // expected-warning {{variable 'x' is possibly uninitialized when used here}}
- }
- return 1.0;
+ if (bar() || baz() || Foo() || init(&x))
+ return 1.0;
+
+ return x; // expected-warning {{variable 'x' is possibly uninitialized when used here}}
}