Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted64.C
blobf20030192c376979de1ed1ed1a794bb7788bef5e
1 // PR c++/116162
2 // { dg-do compile { target c++11 } }
4 struct M
6   M& operator=(M&&);
7 };
9 struct R
11   R& operator=(R&&) = default;
12   M m;
15 struct S
17   S& operator=(const S&&) = default; // { dg-warning "implicitly deleted" "" { target c++20 } }
18                                      // { dg-error "does not match" "" { target c++17_down } .-1 }
20   M m;
23 struct T
25   T operator=(T&&) = default; // { dg-error "defaulted" }
26   M m;