2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / ttp2.C
blob45d9abddfe286efa224f1256f37d7bf2353eb9b5
1 // Copyright (C) 2001 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3 // { dg-do compile }
5 template <class U> struct Alloc {};
7 template <class T, class U = Alloc<T> > struct Vector {};
9 template <template <class T, class U = Alloc<T> > class TT>
10 struct C {
11         TT<int> tt;
14 int main()
16         C<Vector> c;