Debian Codegraph @

gcc/testsuite/g++.dg/template/ttp2.C

raw
1 // Copyright (C) 2001 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <[email protected]>
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 }