blob: d62f681f3934c1ba41a4c3ef5a38dc2c5c76385f [file] [log] [blame]
Douglas Gregorc15cb382009-02-09 23:23:08 +00001// RUN: clang -fsyntax-only -verify %s
2template<typename T,
3 int I,
4 template<typename> class TT>
5 class A;
6
7template<typename> class X;
8
9A<int, 0, X> * a1;
10
11A<float, 1, X, double> *a2; // expected-error{{too many template arguments for class template 'A'}}
12
13A<float, 1> *a3; // expected-error{{too few template arguments for class template 'A'}}