[cfe-commits] r78150 - /cfe/trunk/test/Analysis/misc-ps-region-store.m
Zhongxing Xu
xuzhongxing at gmail.com
Tue Aug 4 20:45:23 PDT 2009
Author: zhongxingxu
Date: Tue Aug 4 22:45:09 2009
New Revision: 78150
URL: http://llvm.org/viewvc/llvm-project?rev=78150&view=rev
Log:
Add test case.
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=78150&r1=78149&r2=78150&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/misc-ps-region-store.m (original)
+++ cfe/trunk/test/Analysis/misc-ps-region-store.m Tue Aug 4 22:45:09 2009
@@ -154,3 +154,15 @@
}
}
}
+
+// Test pointers increment correctly.
+void f() {
+ int a[2];
+ a[1] = 3;
+ int *p = a;
+ p++;
+ if (*p != 3) {
+ int *q = 0;
+ *q = 3; // no-warning
+ }
+}
More information about the cfe-commits
mailing list