CMake/Tests/CompileFeatures/cxx_lambda_init_captures.cpp

8 lines
92 B
C++

int someFunc()
{
int a = 0;
return [b = static_cast<int&&>(a)]() { return b; }
();
}