commit | 26134a1b596b9763a6975f15bf296a580b141114 | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Thu Nov 13 09:20:05 2008 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Thu Nov 13 09:20:05 2008 +0000 |
tree | 1620673277af6f704f5b03282215699abad0ef20 | |
parent | cc0d0ec3a8d567f8b3fb70da177e38fe89efbc10 [diff] [blame] |
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 ae33a13..9548fa0 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c
@@ -59,3 +59,8 @@ struct s2 *p = __builtin_alloca(10); g2(p); } + +void f8() { + int a[10]; + a[sizeof(a) - 1] = 1; +}