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

Ted Kremenek kremenek at apple.com
Mon Nov 24 10:51:47 PST 2008


Please add "no-warning" comments on both array accesses to indicate  
that this is proper behavior.  (it documents the test case for us)

On Nov 22, 2008, at 9:50 PM, Zhongxing Xu wrote:

> 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() {
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list