From: Zhongxing Xu Date: Thu, 13 Nov 2008 09:20:05 +0000 (+0000) Subject: Add test for unsigned array index. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26134a1b596b9763a6975f15bf296a580b141114;p=clang Add test for unsigned array index. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59239 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; +}