blob: 94976e9735c86925d91954efeb4547a58aa0f418 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
template<typename T, int N = 2> struct X; // expected-note{{template is declared here}}
X<int, 1> *x1;
X<int> *x2;
X<> *x3; // expected-error{{too few template arguments for class template 'X'}} \
// FIXME: expected-error{{expected unqualified-id}}
template<typename U = float, int M> struct X;
X<> *x4;