CMake/Tests/CompileFeatures/cxx_reference_qualified_fun...

14 lines
130 B
C++
Raw Normal View History

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