(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp2a/
lambda-uneval1.C
// { dg-do compile { target c++20 } }

typedef decltype([]{}) C; // the closure type has no name for linkage purposes

// { dg-final { scan-assembler-not "\[^l\]globl\[ \t\.\]*_Z1f" } }
// { dg-final { scan-assembler-not "_Z1f1C" } }
void f(C) {}

int main()
{
  C c;
  c();
  f(c);
}