From 03af377b2755fb2ddb0621dea5dd91cd5fda631d Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Fri, 22 Mar 2013 21:15:26 +0000 Subject: [PATCH] [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 --- test/Analysis/inlining/false-positive-suppression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() { -- 2.40.0