summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_lambda_init_captures.cpp
blob: 7e337faf415f0aa6518fbda8ceb6cd0360d4b9ea (plain)
1
2
3
4
5
6

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