aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/partial-specialization.C
blob: feaeb2fbfce1a44a9a08ca3259d832f52671f051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
// Origin: philippeb@videotron.ca
// { dg-do compile }

struct B
{
	int i;
};

template <class _T, class _M, _M _T::* _V>
	struct A;

template <class _T, int _T::* _V>
	struct A<_T, int, _V>
	{
	};

int main()
{
	A<B, int, & B::i> a;
}