aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/static-operator-call7.C
blob: 7c381e6941694ef7da9bd2cd80880e77dbd88df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/114632
// { dg-do compile { target c++23 } }

struct S {};

auto lambda = [](auto, const int x) static /* -> void */ {};

int main()
{
    void (*func)(int, int) = lambda;
    return 0;
}