Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/nontype-class52a.C

raw
1 // A version of nontype-class52.C where explicit template arguments are
2 // given in the call to f (which during deduction need to be partially
3 // substituted into the NTTP object V in f's signature).
4 // { dg-do compile { target c++20 } }
5
6 template<class> struct A { };
7
8 template<auto> struct B { };
9
10 template<class T, A<T> V> void f(B<V>);
11
12 int main() {
13 constexpr A<int> a;
14 f<int>(B<a>{});
15 }