summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_reference_qualified_functions.cpp
blob: 2fd36e05c0fe8120ef7012425ed86278f1a28e67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

struct test
{
  void f() & {}
  void f() && {}
};

void someFunc()
{
  test t;
  t.f();      // lvalue
  test().f(); // rvalue
}