aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted29.C
blob: 8e2989bac0e89e0d5b12d80aee68d322f97efa18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/46696
// { dg-do compile { target c++11 } }

struct A
{
  A& operator= (A const&);
};

struct B
{
  A ar[1];
  B& operator= (B const&) = default;
};

int main()
{
  B x;
  B y;
  y = x;
}