(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1z/
decomp39.C
// PR c++/85209
// { dg-do compile { target c++11 } }
// { dg-options "" }

template <int>
void
foo ()
{
  auto [a] = []{};	// { dg-error "cannot decompose lambda closure type" }
}			// { dg-warning "structured bindings only available with" "" { target c++14_down } .-1 }

void
bar ()
{
  foo<0> ();
}