From: Jordan Rose Date: Fri, 22 Mar 2013 21:15:26 +0000 (+0000) Subject: [analyzer] Fix test to actually test what was intended. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03af377b2755fb2ddb0621dea5dd91cd5fda631d;p=clang [analyzer] Fix test to actually test what was intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177763 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/inlining/false-positive-suppression.cpp b/test/Analysis/inlining/false-positive-suppression.cpp index 02782c3f23..bff6907809 100644 --- a/test/Analysis/inlining/false-positive-suppression.cpp +++ b/test/Analysis/inlining/false-positive-suppression.cpp @@ -84,8 +84,8 @@ namespace References { *box = 1; // no-warning int *&box2 = m.getValue(i); - box = 0; - *box = 1; // expected-warning {{Dereference of null pointer}} + box2 = 0; + *box2 = 1; // expected-warning {{Dereference of null pointer}} } SomeClass *&getSomeClass() {