aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/array-struct.c
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-11-13 09:20:05 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-11-13 09:20:05 +0000
commit26134a1b596b9763a6975f15bf296a580b141114 (patch)
tree1620673277af6f704f5b03282215699abad0ef20 /test/Analysis/array-struct.c
parentcc0d0ec3a8d567f8b3fb70da177e38fe89efbc10 (diff)
Add test for unsigned array index.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59239 91177308-0d34-0410-b5e6-96231b3b80d8
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;
+}