gcc/testsuite/g++.dg/cpp0x/defaulted67.C
raw| 1 | // PR c++/116162 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-additional-options "-Wno-defaulted-function-deleted" } |
| 4 | |
| 5 | struct S |
| 6 | { |
| 7 | S& operator=(S &&) = default; |
| 8 | }; |
| 9 | |
| 10 | struct T |
| 11 | { |
| 12 | T& operator=(volatile T &&) = default; |
| 13 | }; |
| 14 | |
| 15 | struct U |
| 16 | { |
| 17 | U& operator=(const volatile U &&) = default; |
| 18 | }; |
| 19 | |
| 20 | struct V |
| 21 | { |
| 22 | V& operator=(const V &&) = default; |
| 23 | }; |