summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/rv10.C
blob: 5e78b1dbb69060f2e9a241bae83829bbd43c8d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options "-std=gnu++0x" }

struct A
{
  A() = default;
  A(const A&) = delete;
};

A&& f();
void h(A&&);
void g()
{
  A&& arr = f();
  h(f());
}