aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/ref-qual6.C
blob: 02e3f6e683eb1f87faa68e7dcde75129638f0796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Binding an rvalue to && beats binding it to const& (13.3.3.2).

// { dg-require-effective-target c++11 }

struct A
{
  int operator+(int) &&;
};

void operator+ (const A&, int);

int main()
{
  return A() + 42;
}