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

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

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