summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/c-c++-common/builtin-offsetof.c
Commit message (Collapse)AuthorAgeFilesLines
* PR middle-end/41935jakub2009-11-061-2/+2
| | | | | | | | | | | | | | | | * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs or non-constant index, allow index one past the last element and allow exceeding array bound in arrays that might be used as flexible array members. * gcc.dg/pr41935.c: New test. * c-c++-common/pr41935.c: New test. * c-c++-common/builtin-offsetof.c (f0): Allow index one past the last element. * gcc.c-torture/execute/pr41935.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153962 138bc75d-0d04-0410-961f-82ee72b054a4
* Move builtin-offsetof.c testdodji2009-11-031-0/+29
PR c++/38699 * c-c++-common/dfp/builtin-offsetof.c: Moved to ... * c-c++-common/builtin-offsetof.c: ... here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153848 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud