2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / init / aggr1.C
blobc63f0b02c652709ca0409824ea17f1af4ccb7db1
1 // Test that initializing an aggregate with complex copy constructor
2 // and assignment ops doesn't cause cp_expr_size to abort.
4 struct A
6   A();
7   A(const A&);
8   A& operator=(const A&);
9 };
11 struct B
13   A a;
16 int main ()
18   B b = { A() };