Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted63.C
blob99f92ff69c528d266e29bbe3503e7399fac0ee9b
1 // PR c++/116162
2 // { dg-do compile { target c++11 } }
4 struct C0 {
5   C0(C0&) = default;
6 };
8 struct C1 {
9   C1(volatile C1&) = default; // { dg-warning "implicitly deleted" "" { target c++20 } }
10                               // { dg-error "does not match" "" { target c++17_down } .-1 }
13 struct C2 {
14   C2(const C2&) = default;
17 struct C3 {
18   C3(const volatile C3&) = default;  // { dg-warning "implicitly deleted" "" { target c++20 } }
19                                       // { dg-error "does not match" "" { target c++17_down } .-1 }
22 struct M0 {
23   M0(M0&&) = default;
26 struct M1 {
27   M1(const M1&&) = default; // { dg-warning "implicitly deleted" "" { target c++20 } }
28                             // { dg-error "does not match" "" { target c++17_down } .-1 }
31 struct M2 {
32   M2(volatile M2&&) = default;  // { dg-warning "implicitly deleted" "" { target c++20 } }
33                                 // { dg-error "does not match" "" { target c++17_down } .-1 }
36 struct M3 {
37   M3(const volatile M3&&) = default;  // { dg-warning "implicitly deleted" "" { target c++20 } }
38                                       // { dg-error "does not match" "" { target c++17_down } .-1 }