Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted29.C
blob: 8e2989bac0e89e0d5b12d80aee68d322f97efa18 [
file
] [
log
] [
blame
]
// 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
;
}