[cfe-commits] r110058 - /cfe/trunk/test/Analysis/misc-ps-region-store.m
Ted Kremenek
kremenek at apple.com
Mon Aug 2 13:33:00 PDT 2010
Author: kremenek
Date: Mon Aug 2 15:33:00 2010
New Revision: 110058
URL: http://llvm.org/viewvc/llvm-project?rev=110058&view=rev
Log:
Add test case for <rdar://problem/8258814>.
Modified:
cfe/trunk/test/Analysis/misc-ps-region-store.m
Modified: cfe/trunk/test/Analysis/misc-ps-region-store.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/misc-ps-region-store.m?rev=110058&r1=110057&r2=110058&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/misc-ps-region-store.m (original)
+++ cfe/trunk/test/Analysis/misc-ps-region-store.m Mon Aug 2 15:33:00 2010
@@ -1057,3 +1057,12 @@
*p = 0xDEADBEEF; // expected-warning{{Dereference of null pointer}}
}
+// <rdar://problem/8258814>
+int r8258814()
+{
+ int foo;
+ int * a = &foo;
+ a[0] = 10;
+ // Do not warn that the value of 'foo' is uninitialized.
+ return foo; // no-warning
+}
More information about the cfe-commits
mailing list