PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / opt / array2.C
blobb40b052d7c6e9e9bd926bebf51b827b5e40c5975
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 struct JArray
5   int data[1];
6 };
7 void *copyIntoByteArray (struct JArray *dest, __SIZE_TYPE__ offset)
9   void *pdest = dest->data + offset;
10   return pdest;