1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// Test that initializing an aggregate with complex copy constructor // and assignment ops doesn't cause cp_expr_size to abort. struct A { A(); A(const A&); A& operator=(const A&); }; struct B { A a; }; int main () { B b = { A() }; }