aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/uninit-variables-conditional.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2011-09-10 05:35:08 +0000
committerDavid Blaikie <dblaikie@gmail.com>2011-09-10 05:35:08 +0000
commit4f4f349208b2b2307454e169ac7b039e989f003f (patch)
tree69b0eb5ae0525be474402fb09d427a49ec458714 /test/SemaCXX/uninit-variables-conditional.cpp
parentb1f251f30eefdb31eae70057087c22f2fe9f0254 (diff)
Show either a location or a fixit note, not both, for uninitialized variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/uninit-variables-conditional.cpp')
-rw-r--r--test/SemaCXX/uninit-variables-conditional.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/uninit-variables-conditional.cpp b/test/SemaCXX/uninit-variables-conditional.cpp
index 3324215621..3c44c7249d 100644
--- a/test/SemaCXX/uninit-variables-conditional.cpp
+++ b/test/SemaCXX/uninit-variables-conditional.cpp
@@ -15,7 +15,7 @@ int init(double *);
// the destructor in Foo fouls about the minor bit of path-sensitivity in
// -Wuninitialized.
double test() {
- double x; // expected-note {{variable 'x' is declared here}} expected-note{{add initialization to silence this warning}}
+ double x; // expected-note{{initialize the variable 'x' to silence this warning}}
if (bar() || baz() || Foo() || init(&x))
return 1.0;