[cfe-commits] r59239 - /cfe/trunk/test/Analysis/array-struct.c
Zhongxing Xu
xuzhongxing at gmail.com
Thu Nov 13 01:20:05 PST 2008
Author: zhongxingxu
Date: Thu Nov 13 03:20:05 2008
New Revision: 59239
URL: http://llvm.org/viewvc/llvm-project?rev=59239&view=rev
Log:
Add test for unsigned array index.
Modified:
cfe/trunk/test/Analysis/array-struct.c
Modified: cfe/trunk/test/Analysis/array-struct.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/array-struct.c?rev=59239&r1=59238&r2=59239&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/array-struct.c (original)
+++ cfe/trunk/test/Analysis/array-struct.c Thu Nov 13 03:20:05 2008
@@ -59,3 +59,8 @@
struct s2 *p = __builtin_alloca(10);
g2(p);
}
+
+void f8() {
+ int a[10];
+ a[sizeof(a) - 1] = 1;
+}
More information about the cfe-commits
mailing list