Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / rv-conv5.C
blobdcb6fc6f76f324bccaa8f0a5e2fcde1edaaa36c9
1 // PR c++/113064
2 // { dg-do compile { target c++11 } }
4 struct no_copy {
5   no_copy() = default;
7   no_copy(const no_copy&) = delete;
8   no_copy(no_copy&&);
10   no_copy& operator=(const no_copy&) = delete;
11   no_copy& operator=(no_copy&&);
14 struct A {
15   operator no_copy() &;
16   operator no_copy&&() && = delete;
19 int main() {
20   no_copy nc;
21   A a;
22   nc = a;