Douglas Gregor | c15cb38 | 2009-02-09 23:23:08 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | template<typename T, |
| 3 | int I, |
| 4 | template<typename> class TT> |
Douglas Gregor | 62cb18d | 2009-02-11 18:16:40 +0000 | [diff] [blame^] | 5 | class A; // expected-note 2 {{template is declared here}} |
Douglas Gregor | c15cb38 | 2009-02-09 23:23:08 +0000 | [diff] [blame] | 6 | |
| 7 | template<typename> class X; |
| 8 | |
| 9 | A<int, 0, X> * a1; |
| 10 | |
Douglas Gregor | 658bbb5 | 2009-02-11 16:16:59 +0000 | [diff] [blame] | 11 | A<float, 1, X, double> *a2; // expected-error{{too many template arguments for class template 'A'}} \ |
| 12 | // expected-error{{unqualified-id}} |
| 13 | A<float, 1> *a3; // expected-error{{too few template arguments for class template 'A'}} \ |
| 14 | // expected-error{{unqualified-id}} |