aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/array-struct.c
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-11-13 07:59:15 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-11-13 07:59:15 +0000
commitb670133b9e9fd7bce078674d782dad9d7c320f9d (patch)
tree1ff37ddd356231737081f47fdce4c6f5a30daacf /test/Analysis/array-struct.c
parent6d82f9d3383e7f0fae93418a9a98f0c8e9a2d05b (diff)
Add a test case for alloca().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r--test/Analysis/array-struct.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index b95f3547a3..ec4e154a55 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -44,3 +44,9 @@ void f5() {
struct s data;
g1(&data);
}
+
+void f6() {
+ char *p;
+ p = __builtin_alloca(10);
+ p[1] = 'a';
+}