diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-03-03 00:28:42 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-03-03 00:28:42 +0000 |
commit | e184b1e4e06c059a8360fae4c9b5ea00fd62014d (patch) | |
tree | 6f32b2bab7c1d9f0cff08720b8d7e34b65ec74c4 | |
parent | 592b67b480d48958c2e335dd978bb3a6380d764e (diff) |
Add test case for pointer arithmetic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65907 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Analysis/ptr-arith.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/ptr-arith.c b/test/Analysis/ptr-arith.c new file mode 100644 index 0000000000..a8d03eb3d8 --- /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; +} |