]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/implicit-copy.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / implicit-copy.C
1 // { dg-do compile { target c++11 } }
2 struct S
3 {
4 S();
5 private:
6 S(S const &&);
7 S & operator=(S const &&);
8 };
9
10 void f()
11 {
12 S a;
13 S b(a); // { dg-error "deleted" }
14 a = b; // { dg-error "deleted" }
15 }
This page took 0.042756 seconds and 5 git commands to generate.