commit | 5f097321c186cdd51fa5dc6aeccffb48ecc5f379 | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Tue Mar 03 00:28:42 2009 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Tue Mar 03 00:28:42 2009 +0000 |
tree | 6f32b2bab7c1d9f0cff08720b8d7e34b65ec74c4 | |
parent | 8a9a26b5e3e07592aea103fc4ad23b58d809bf1c [diff] [blame] |
Add test case for pointer arithmetic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65907 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/ptr-arith.c b/test/Analysis/ptr-arith.c new file mode 100644 index 0000000..a8d03eb --- /dev/null +++ b/test/Analysis/ptr-arith.c
@@ -0,0 +1,7 @@ +// RUN: clang -analyze -checker-simple -analyzer-store=region -verify %s + +void f1() { + int a[10]; + int *p = a; + ++p; +}