diff options
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; +} |