| Douglas Gregor | c347d8e | 2009-02-11 18:16:40 +0000 | [diff] [blame^] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | |||||
| 3 | template<typename T, int N = 2> struct X; // expected-note{{template is declared here}} | ||||
| 4 | |||||
| 5 | X<int, 1> *x1; | ||||
| 6 | X<int> *x2; | ||||
| 7 | |||||
| 8 | X<> *x3; // expected-error{{too few template arguments for class template 'X'}} \ | ||||
| 9 | // FIXME: expected-error{{expected unqualified-id}} | ||||
| 10 | |||||
| 11 | template<typename U = float, int M> struct X; | ||||
| 12 | |||||
| 13 | X<> *x4; | ||||