aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/implicit-copy.C
blob: d4cd2e88d70e701161e4ddc770763261571b38ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++11 } }
struct S
{
  S();
private:
  S(S const &&);
  S & operator=(S const &&);
};

void f()
{
  S a;
  S b(a);			// { dg-error "deleted" }
  a = b;			// { dg-error "deleted" }
}