Debian Codegraph @

gcc/testsuite/g++.dg/template/unify13.C

raw
1 // PR c++/120161
2
3 template<class T, class U>
4 struct mp_list { };
5
6 template<class T>
7 struct Wrap { struct type { }; };
8
9 struct A : mp_list<Wrap<int>::type, void>
10 , mp_list<Wrap<long>::type, void> { };
11
12 template<class U>
13 void f(mp_list<Wrap<int>::type, U>*);
14
15 int main() {
16 A a;
17 f(&a);
18 }