diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-06-29 06:43:40 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-06-29 06:43:40 +0000 |
commit | a03f157f154d0013e9c3eee261062959371aa868 (patch) | |
tree | 35258b71aa8db526183b2f2e169b9fc69b2ed778 /test/Analysis/array-struct.c | |
parent | f0f0605c87739c906861f73d4287798a4969b1e0 (diff) |
Invalidate the alloca region by setting its default value to conjured symbol.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r-- | test/Analysis/array-struct.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index 13035760fa..da7df4b28e 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -168,3 +168,15 @@ void f17() { if (t.e.d) x = 1; } + +void read(char*); + +void f18() { + char *q; + char *p = (char *) __builtin_alloca(10); + read(p); + q = p; + q++; + if (*q) { // no-warning + } +} |