aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/array-struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/array-struct.c')
-rw-r--r--test/Analysis/array-struct.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c
index ae33a13890..9548fa0d0e 100644
--- a/test/Analysis/array-struct.c
+++ b/test/Analysis/array-struct.c
@@ -59,3 +59,8 @@ void f7() {
struct s2 *p = __builtin_alloca(10);
g2(p);
}
+
+void f8() {
+ int a[10];
+ a[sizeof(a) - 1] = 1;
+}