summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/cast-bug.C
blob: 211f88b2b19409139bc8b286592a8e2d4198eba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-options "--std=c++0x" }
struct S
{
  S();
  S(S &&);
private:
  S(S &);
};

S f()
{
  S s;
  return static_cast<S&&>(s);
}