Debian Codegraph @

gcc/testsuite/g++.dg/pr90338.C

raw
1 struct B {
2 B(); // This type is non-literal
3 void func();
4 };
5
6 template <class Class, void (Class::*Ptr)()>
7 void match();
8
9 template <class Any, Any Value>
10 void match();
11
12 void func() {
13 match<B, &B::func>();
14 }