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>
19 p = malloc(n * sizeof (X));
20 memset (p, 0xff, n * sizeof(X));
21 return new (p) X[n]();
28 for (int i = 0; i < n; ++i)
29 if (p[i].a != 0 || p[i].b != 0.0)