]> granicus.if.org Git - clang/commitdiff
[analyzer] Fix test to actually test what was intended.
authorJordan Rose <jordan_rose@apple.com>
Fri, 22 Mar 2013 21:15:26 +0000 (21:15 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 22 Mar 2013 21:15:26 +0000 (21:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177763 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/inlining/false-positive-suppression.cpp

index 02782c3f23b65764f3425120efdad69eb48beb47..bff6907809c11271bad6dd2f6d7d72c0b7c4cce5 100644 (file)
@@ -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() {