commit | 2b1dc179197955bfa79583b13bedb1dc8bcdf25d | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Wed Mar 11 07:43:49 2009 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Wed Mar 11 07:43:49 2009 +0000 |
tree | 55cb9acde752e334164bd649e0213b726428d26f | |
parent | e024c2222623859d6c905dfba09a84ca1d8caf0c [diff] [blame] |
Fix crash when LHS of pointer arithmetic is not ElementRegion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66649 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/ptr-arith.c b/test/Analysis/ptr-arith.c index a8d03eb..7b66b2f 100644 --- a/test/Analysis/ptr-arith.c +++ b/test/Analysis/ptr-arith.c
@@ -5,3 +5,10 @@ int *p = a; ++p; } + +char* foo(); + +void f2() { + char *p = foo(); + ++p; +}