aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/explicit-obj-lambda15.C
blob: 369f0895ed1005de4262059d664fdeeb77aed40c (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/119038
// { dg-do compile { target c++23 } }

struct A {
  void f() {
    [&](auto x) { g(x); h(x); }(0);
  }

  void g(this A&, int);
  void h(this auto&, auto);
};