1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// { dg-do run } // prms-id: 6927 class Object { public: Object(); int Value; }; Object::Object() : Value(-1) { } Object *pArr = new Object[2]; int main() { if (pArr[0].Value != -1 || pArr[1].Value != -1) return 1; }