aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {