[cfe-commits] r59902 - /cfe/trunk/test/Analysis/array-struct.c

Zhongxing Xu xuzhongxing at gmail.com
Sat Nov 22 21:50:21 PST 2008


Author: zhongxingxu
Date: Sat Nov 22 23:50:21 2008
New Revision: 59902

URL: http://llvm.org/viewvc/llvm-project?rev=59902&view=rev
Log:
Improve test case.

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=59902&r1=59901&r2=59902&view=diff

==============================================================================
--- cfe/trunk/test/Analysis/array-struct.c (original)
+++ cfe/trunk/test/Analysis/array-struct.c Sat Nov 22 23:50:21 2008
@@ -62,7 +62,7 @@
 
 void f8() {
   int a[10];
-  a[sizeof(a) - 1] = 1;
+  a[sizeof(a)/sizeof(int) - 1] = 1;
 }
 
 void f9() {





More information about the cfe-commits mailing list