diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-05-20 09:18:48 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-05-20 09:18:48 +0000 |
commit | 918441255162c1a1c77c13752aaa1a3c43ac2ab9 (patch) | |
tree | f1274af71224d46b41689afc680f587b75309840 /test/Analysis/array-struct.c | |
parent | 2acc3992b61e71d30653bf19be2479a78e4cd7a1 (diff) |
Treat AllocaRegion as SymbolicRegion in RegionStore::Retrieve().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72166 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r-- | test/Analysis/array-struct.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index e602d5f527..c0e1d8b7e3 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -15,6 +15,7 @@ typedef struct { int data; } STYPE; +void g(char *p); void g1(struct s* p); // Array to pointer conversion. Array in the struct field. @@ -62,6 +63,8 @@ void f5() { void f6() { char *p; p = __builtin_alloca(10); + g(p); + char c = *p; p[1] = 'a'; // Test if RegionStore::EvalBinOp converts the alloca region to element // region. @@ -98,7 +101,7 @@ void f10() { // Retrieve the default value of element/field region. void f11() { struct s a; - g(&a); + g1(&a); if (a.data == 0) // no-warning a.data = 1; } |