blob: 5fcf5b0c5432d7789e796e4890863d52c68dbedd (
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-options -std=c++0x }
struct A
{
A& operator= (A const&);
};
struct B
{
A ar[1];
B& operator= (B const&) = default;
};
int main()
{
B x;
B y;
y = x;
}
|