Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/class-deduction4.C

raw
1 // { dg-do compile { target c++17 } }
2
3 template <int I, int J>
4 struct A { };
5
6 template <int I>
7 struct B
8 {
9 template<int J>
10 B(A<I,J>);
11 };
12
13 A<42,24> a;
14 B b (a);
15
16 int main()
17 {
18 (B(a));
19 }