xref: /aosp_15_r20/external/clang/test/SemaTemplate/recursive-template-instantiation.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s
2*67e74705SXin Li 
f(T * t)3*67e74705SXin Li template<typename T> void f(T* t) { // expected-note{{could not match 'T *' against 'int'}}
4*67e74705SXin Li   f(*t); // expected-error{{no matching function}}\
5*67e74705SXin Li          // expected-note 3{{requested here}}
6*67e74705SXin Li }
7*67e74705SXin Li 
test_f(int **** p)8*67e74705SXin Li void test_f(int ****p) {
9*67e74705SXin Li   f(p); // expected-note{{requested here}}
10*67e74705SXin Li }
11