(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1y/
pr78523.C
// PR c++/78523
// { dg-do compile { target c++14 } }

int bar ();

void
foo ()
{
  const int t = bar ();
  auto f = [=] (auto x) { return t; };
  f (0);
}