Douglas Gregor | 62cb18d | 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 | |||||
Douglas Gregor | 39a8de1 | 2009-02-25 19:37:18 +0000 | [diff] [blame] | 8 | X<> *x3; // expected-error{{too few template arguments for class template 'X'}} |
Douglas Gregor | 62cb18d | 2009-02-11 18:16:40 +0000 | [diff] [blame] | 9 | |
10 | template<typename U = float, int M> struct X; | ||||
11 | |||||
12 | X<> *x4; |