diff --git a/clang/test/Analysis/array-struct.c b/clang/test/Analysis/array-struct.c index ae33a138908c..9548fa0d0e1c 100644 --- a/clang/test/Analysis/array-struct.c +++ b/clang/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; +}