aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-targ11.C
blob: 9f2f743b7eb4944cb64a5093e940215caa17027b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/119401
// { dg-do compile { target c++20 } }

template <auto>
struct B {};
template <int N>
struct A {
  void f(B<[]{}>) {}
};
auto t = &A<0>::f;

// A<0>::f(B<A<0>::{lambda()#1}{}>)
// { dg-final { scan-assembler "_ZN1AILi0EE1fE1BIXtlNS0_UlvE_EEEE" { xfail *-*-* } } }