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