opnsense-src/test/SemaTemplate/recursive-template-instantiation.cpp

11 lines
307 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-07-04 09:58:54 -04:00
2010-02-16 04:31:36 -05:00
template<typename T> void f(T* t) { // expected-note{{failed template argument deduction}}
2009-07-04 09:58:54 -04:00
f(*t); // expected-error{{no matching function}}\
// expected-note 3{{requested here}}
}
void test_f(int ****p) {
f(p); // expected-note{{requested here}}
}