blob: f4505b6957ecdcb0c406731abb6138bd21032e31 [file] [log] [blame]
// { 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);
}