diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-02-19 08:42:43 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-02-19 08:42:43 +0000 |
commit | 3450a55f403f4b55120d4d5403ac4ebfab3a55d0 (patch) | |
tree | f33737d2286b223ff92897cff60799c2972c067c /test/Analysis/array-struct.c | |
parent | 5ea2ffcb6c03f6718f7185dddad30d0bd63fb769 (diff) |
add test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r-- | test/Analysis/array-struct.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index bf615c3fc8..86858d7bd2 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -97,3 +97,10 @@ void f11() { if (a.data == 0) // no-warning a.data = 1; } + +// Convert unsigned offset to signed when creating ElementRegion from +// SymbolicRegion. +void f12(int *list) { + unsigned i = 0; + list[i] = 1; +} |