3 // { dg-options "-O2" }
5 typedef __SIZE_TYPE__ size_t;
6 inline void *operator new (size_t, void *p) throw () { return p; }
7 extern "C" void abort ();
12 const unsigned num = 10;
13 unsigned *data = new unsigned[2 * num];
15 for (unsigned i = 0; i < 2 * num; ++i)
16 (i % 2 == 0) ? new (ptr) unsigned (2) : new (ptr++) unsigned (1);
17 if (ptr - data != num)