aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/init/aggr1.C
blob: c63f0b02c652709ca0409824ea17f1af4ccb7db1 (plain)
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() };
}