aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv-copy1.C
blob: 70d3d7192227dfee5fe1a0232c099b618a726811 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/55017
// { dg-do compile { target c++11 } }

struct S {			// { dg-error "rvalue ref" }
  int&& rr;
  S(int&& rr) : rr(static_cast<int&&>(rr)) {}
};

S s1(13);
S s2 = s1;			// { dg-error "deleted" }