Debian Codegraph @

gcc/testsuite/g++.dg/template/partial-specialization.C

raw
1 // Contributed by Gabriel Dos Reis <[email protected]>
2 // Origin: [email protected]
3 // { dg-do compile }
4
5 struct B
6 {
7 int i;
8 };
9
10 template <class _T, class _M, _M _T::* _V>
11 struct A;
12
13 template <class _T, int _T::* _V>
14 struct A<_T, int, _V>
15 {
16 };
17
18 int main()
19 {
20 A<B, int, & B::i> a;
21 }
22