2 // PR 11228: array operator new, with zero-initialization and a variable sized array.
3 // Regression test for PR
4 // Author: Matt Austern <austern@apple.com>
31 p = malloc(n * sizeof (D));
32 memset (p, 0xff, n * sizeof(D));
33 return new (p) D[n]();
40 for (int i = 0; i < n; ++i)
41 if (p[i].n != 137 || p[i].x != 0)