summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/graphite/pr42681.C
blob: 4c137ec0615344869a102021ade7c212c98b40a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-options "-O1 -fgraphite-identity -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine" } */

typedef __SIZE_TYPE__ size_t;
inline void* operator new(size_t, void* __p) throw() { return __p; }

struct A {
  int i, j;
  A() : i(0) {}
};

void Init(A *a)
{
  for (int i = 0; i < 20; i++) {
    new (&a[i]) A;
    a[i].j = 0;
  }
}