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>
11 double* allocate(int n)
14 p = malloc(n * sizeof (double));
15 memset (p, 0xff, n * sizeof(double));
16 return new (p) double[n]();
22 double* p = allocate(n);
23 for (int i = 0; i < n; ++i)