r177763 - [analyzer] Fix test to actually test what was intended.

Jordan Rose jordan_rose at apple.com
Fri Mar 22 14:15:26 PDT 2013


Author: jrose
Date: Fri Mar 22 16:15:26 2013
New Revision: 177763

URL: http://llvm.org/viewvc/llvm-project?rev=177763&view=rev
Log:
[analyzer] Fix test to actually test what was intended.

Modified:
    cfe/trunk/test/Analysis/inlining/false-positive-suppression.cpp

Modified: cfe/trunk/test/Analysis/inlining/false-positive-suppression.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/inlining/false-positive-suppression.cpp?rev=177763&r1=177762&r2=177763&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/inlining/false-positive-suppression.cpp (original)
+++ cfe/trunk/test/Analysis/inlining/false-positive-suppression.cpp Fri Mar 22 16:15:26 2013
@@ -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() {





More information about the cfe-commits mailing list