summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/nttp1.C
blob: 3af938b7058c4b9e5a321fd403e1e9d6e516e885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do run  }
// Test for nested template template parameter feature

template <template<template <class> class> class TTT> struct C
{
	int f();
};

template <template<template <class> class> class TTT> int C<TTT>::f()
{
	return 0;
}

template <template <class> class TT> struct D
{
};

int main()
{
	C<D> c;
	c.f();
}