(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1y/
lambda-init6.C
// Test that captures are not named in the closure type.
// { dg-do compile { target c++14 } }

int main()
{
  int i;
  auto lam = [i,j=42]{};
  lam.j;                        // { dg-error "no member" }
  lam.i;			// { dg-error "no member" }
}