commit | 3ae9f34f857b87166a6d8f6812f400620410619e | [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 | 093c611b47e559d241a63d92193e241e587ba35b [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; +}