Mercurial > hg > CbC > CbC_llvm
comparison clang/test/SemaTemplate/temp_arg.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 0572611fdcc8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // RUN: %clang_cc1 -fsyntax-only -verify %s | |
2 template<typename T, | |
3 int I, | |
4 template<typename> class TT> | |
5 class A; // expected-note 3 {{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'}} | |
13 A a4; // expected-error{{use of class template 'A' requires template arguments}} | |
14 | |
15 namespace test0 { | |
16 template <class t> class foo {}; | |
17 template <class t> class bar { | |
18 bar(::test0::foo<tee> *ptr) {} // FIXME(redundant): expected-error 2 {{use of undeclared identifier 'tee'}} | |
19 }; | |
20 } |