summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/array2.C
blob: b40b052d7c6e9e9bd926bebf51b827b5e40c5975 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct JArray
{
  int data[1];
};
void *copyIntoByteArray (struct JArray *dest, __SIZE_TYPE__ offset)
{
  void *pdest = dest->data + offset;
  return pdest;
}