1 // { dg-do compile { target c++20 } } 2 3 typedef decltype([]{}) C; // the closure type has no name for linkage purposes 4 5 // { dg-final { scan-assembler-not "\[^l\]globl\[ \t\.\]*_Z1f" } } 6 // { dg-final { scan-assembler-not "_Z1f1C" } } f(C)7void f(C) {} 8 main()9int main() 10 { 11 C c; 12 c(); 13 f(c); 14 } 15 16 17