[cfe-commits] r65907 - /cfe/trunk/test/Analysis/ptr-arith.c
Zhongxing Xu
xuzhongxing at gmail.com
Mon Mar 2 16:28:44 PST 2009
Author: zhongxingxu
Date: Mon Mar 2 18:28:42 2009
New Revision: 65907
URL: http://llvm.org/viewvc/llvm-project?rev=65907&view=rev
Log:
Add test case for pointer arithmetic.
Added:
cfe/trunk/test/Analysis/ptr-arith.c
Added: cfe/trunk/test/Analysis/ptr-arith.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/ptr-arith.c?rev=65907&view=auto
==============================================================================
--- cfe/trunk/test/Analysis/ptr-arith.c (added)
+++ cfe/trunk/test/Analysis/ptr-arith.c Mon Mar 2 18:28:42 2009
@@ -0,0 +1,7 @@
+// RUN: clang -analyze -checker-simple -analyzer-store=region -verify %s
+
+void f1() {
+ int a[10];
+ int *p = a;
+ ++p;
+}
More information about the cfe-commits
mailing list