aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-03-22 21:15:26 +0000
committerJordan Rose <jordan_rose@apple.com>2013-03-22 21:15:26 +0000
commit03af377b2755fb2ddb0621dea5dd91cd5fda631d (patch)
tree5318a91e468a99157ee7297fe34aa4175fc3120f
parent1aa4f5019164592643bf46b7d61f15b6ef509c8e (diff)
[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
-rw-r--r--test/Analysis/inlining/false-positive-suppression.cpp4
1 files 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() {