recursive-template-instantiation.cpp 308 B

12345678910
  1. // RUN: %clang_cc1 -fsyntax-only -verify %s
  2. template<typename T> void f(T* t) { // expected-note{{could not match 'T *' against 'int'}}
  3. f(*t); // expected-error{{no matching function}}\
  4. // expected-note 3{{requested here}}
  5. }
  6. void test_f(int ****p) {
  7. f(p); // expected-note{{requested here}}
  8. }