summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/default-arguments.cpp
blob: 572227cb61de5df8430e34bbcd2206c7fa35125a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc -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'}}

template<typename U = float, int M> struct X;

X<> *x4;
OpenPOWER on IntegriCloud