OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / ttp2.C
1 // Copyright (C) 2001 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3 // { dg-do compile }
4
5 template <class U> struct Alloc {};
6
7 template <class T, class U = Alloc<T> > struct Vector {};
8
9 template <template <class T, class U = Alloc<T> > class TT>
10 struct C {
11         TT<int> tt;
12 };
13
14 int main()
15 {
16         C<Vector> c;
17 }