(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1y/
lambda-generic-70570.C
// PR c++/70570
// { dg-do assemble { target c++14 } }

template<typename T> void foo(T f) {
  f(1);
}

int main() {
  static const int x = 42;
  foo([](auto y){
    x;
    [](){
      x;
    };
  });
}