Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-memfun3.C

raw
1 // { dg-do compile { target c++20 } }
2
3 template<int I>
4 struct A {
5 enum E { e = I };
6 static void f() requires (e != 0);
7 };
8
9 int main() {
10 A<1>::f();
11 A<0>::f(); // { dg-error "no match" }
12 }