commit | 3450a55f403f4b55120d4d5403ac4ebfab3a55d0 | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Thu Feb 19 08:42:43 2009 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Thu Feb 19 08:42:43 2009 +0000 |
tree | f33737d2286b223ff92897cff60799c2972c067c | |
parent | 5ea2ffcb6c03f6718f7185dddad30d0bd63fb769 [diff] [blame] |
add test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65036 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index bf615c3..86858d7 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c
@@ -97,3 +97,10 @@ 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; +}