commit | b670133b9e9fd7bce078674d782dad9d7c320f9d | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Thu Nov 13 07:59:15 2008 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Thu Nov 13 07:59:15 2008 +0000 |
tree | 1ff37ddd356231737081f47fdce4c6f5a30daacf | |
parent | 6d82f9d3383e7f0fae93418a9a98f0c8e9a2d05b [diff] [blame] |
Add a test case for alloca(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59233 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index b95f354..ec4e154 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c
@@ -44,3 +44,9 @@ struct s data; g1(&data); } + +void f6() { + char *p; + p = __builtin_alloca(10); + p[1] = 'a'; +}