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

template<class T>
int fn() { return 42; }

template<class T>
auto lam = [](int = fn<T>()){};

int main()
{
  lam<int>();
}