Debian Codegraph @

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

raw
1 // { dg-do compile { target c++20 } }
2
3 template <class T>
4 struct A {
5 template <class U>
6 requires (sizeof(T) == 1)
7 static void f(U);
8
9 template <class U>
10 requires (sizeof(T) == 2)
11 static void f(U);
12
13 void g()
14 {
15 f(42);
16 }
17 };