1 // Testcase for value-initialization in new-expressions.
7 // Make sure that we return memory that isn't already set to 0.
8 void *operator new(size_t s)
15 struct A { A() {} ~A() {} };
16 struct B { A a; int i; };
25 if (p[0].i != 0 || p[1].i != 0)
28 B(*p2)[2] = new B[2][2]();
29 if (p2[0][0].i != 0 || p2[0][1].i != 0)