Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted65.C
blob88ca1d96084bb59c647b5abefec66a92c341c2d1
1 // PR c++/116162
2 // { dg-do compile { target c++11 } }
4 struct S
6   S& operator=(S &&) = default;
7 };
9 struct T
11   T& operator=(volatile T &&) = default; // { dg-error "defaulted" "" { target c++17_down } }
12                                          // { dg-warning "implicitly deleted" "" { target c++20 } .-1 }
15 struct U
17   U& operator=(const volatile U &&) = default; // { dg-error "defaulted" "" { target c++17_down } }
18                                                // { dg-warning "implicitly deleted" "" { target c++20 } .-1 }
21 struct V
23   V& operator=(const V &&) = default; // { dg-error "defaulted" "" { target c++17_down } }
24                                       // { dg-warning "implicitly deleted" "" { target c++20 } .-1 }