commit | 05ce9aad2ea61212c9ff7baf5bae0e75631daaa0 | [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 | 42b6ff283ba98cbc96cdcd4d426908daa686f886 [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'; +}