aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-uneval1.C
blob: f4505b6957ecdcb0c406731abb6138bd21032e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { 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);
}