c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / rv-copy1.C
blob70d3d7192227dfee5fe1a0232c099b618a726811
1 // PR c++/55017
2 // { dg-do compile { target c++11 } }
4 struct S {                      // { dg-error "rvalue ref" }
5   int&& rr;
6   S(int&& rr) : rr(static_cast<int&&>(rr)) {}
7 };
9 S s1(13);
10 S s2 = s1;                      // { dg-error "deleted" }