xref: /llvm-project/clang/test/SemaTemplate/recursive-template-instantiation.cpp (revision 44ecdbdc6134c4906a8b8982809ead267cf52237)
18fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -fsyntax-only -verify %s
2dda7ced3SDouglas Gregor 
f(T * t)3*44ecdbdcSRichard Smith template<typename T> void f(T* t) { // expected-note{{could not match 'T *' against 'int'}}
4dda7ced3SDouglas Gregor   f(*t); // expected-error{{no matching function}}\
5dda7ced3SDouglas Gregor          // expected-note 3{{requested here}}
6dda7ced3SDouglas Gregor }
7dda7ced3SDouglas Gregor 
test_f(int **** p)8dda7ced3SDouglas Gregor void test_f(int ****p) {
9dda7ced3SDouglas Gregor   f(p); // expected-note{{requested here}}
10dda7ced3SDouglas Gregor }
11