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