aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/array-8.c
AgeCommit message (Collapse)AuthorFilesLines
2005-03-13anon-struct-6.c, [...]: Ensure uniqueness of test assertion names.Joseph Myers1-2/+2
* gcc.dg/anon-struct-6.c, gcc.dg/array-8.c, gcc.dg/cpp/19940712-1.c, gcc.dg/cpp/19951025-1.c, gcc.dg/cpp/tr-warn6.c, gcc.dg/deprecated.c, gcc.dg/init-bad-1.c, gcc.dg/init-bad-2.c, gcc.dg/init-bad-3.c, gcc.dg/m-un-2.c, gcc.dg/parm-mismatch-1.c, gcc.dg/redecl-1.c: Ensure uniqueness of test assertion names. From-SVN: r96391
2004-11-20c-typeck.c (build_array_ref): Don't check for index == 0.Joseph Myers1-0/+49
* c-typeck.c (build_array_ref): Don't check for index == 0. Make checks for neither argument being an array or pointer (swapping the arguments if necessary), the array argument being a pointer to or array of functions and for -Wchar-subscripts warnings upfront. testsuite: * gcc.dg/Wchar-subscripts-1.c, gcc.dg/array-8.c: New tests. * gcc.dg/pointer-arith-1.c, gcc.dg/pointer-arith-2.c, gcc.dg/pointer-arith-3.c, gcc.dg/pointer-arith-4.c: Update expected diagnostics. From-SVN: r90969