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