Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted60.C
blobad025236ccefc282db1c6b97307a033906aa3496
1 // Core Issue #1331 (const mismatch with defaulted copy constructor)
2 // { dg-do compile { target c++11 } }
4 struct M
6   M(M&);
7 };
9 struct W
11   W();
12   W(const W&);
13   M m;
16 // Not first declaration.
17 W::W(const W&) = default; // { dg-error "binding" }
18 W w;