1 // { dg-do run { xfail *-*-* } }
2 // XFAILed until PR2123 is fixed
3 // PR 11228: array operator new, with zero-initialization and a variable sized array.
4 // Regression test for PR
5 // Author: Matt Austern <austern@apple.com>
32 p = malloc(n * sizeof (D));
33 memset (p, 0xff, n * sizeof(D));
34 return new (p) D[n]();
41 for (int i = 0; i < n; ++i)
42 if (p[i].n != 137 || p[i].x != 0)