]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaTemplate/temp_arg.cpp
Update clang to r84119.
[FreeBSD/FreeBSD.git] / test / SemaTemplate / temp_arg.cpp
1 // RUN: clang-cc -fsyntax-only -verify %s
2 template<typename T, 
3          int I, 
4          template<typename> class TT>
5   class A; // expected-note 2 {{template is declared here}}
6
7 template<typename> class X;
8
9 A<int, 0, X> * a1;
10
11 A<float, 1, X, double> *a2; // expected-error{{too many template arguments for class template 'A'}}
12 A<float, 1> *a3; // expected-error{{too few template arguments for class template 'A'}}