FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / nttp2.C
blob08781daf5169d2c5f4f9cca179f539d25098a143
1 // Test for nested template template parameter feature
3 template <template<template <class> class> class TTT> struct C
5         int f() { return 0; }
6 };
8 template <template <class> class TT> struct D
10         int     a;
13 template <template <class> class TT> struct E
15         int     a;
16         int     b;
19 template <template <template <template<class> class> class> class TTT> 
20 int g(TTT<E> t)
22         TTT<D> tt;
23         return tt.f();
26 int main()
28         C<E> c;
29         g(c);