diff options
Diffstat (limited to 'clang/test/SemaTemplate/recursive-template-instantiation.cpp')
-rw-r--r-- | clang/test/SemaTemplate/recursive-template-instantiation.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/recursive-template-instantiation.cpp b/clang/test/SemaTemplate/recursive-template-instantiation.cpp new file mode 100644 index 0000000..d6a0b24 --- /dev/null +++ b/clang/test/SemaTemplate/recursive-template-instantiation.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +template<typename T> void f(T* t) { // expected-note{{failed template argument deduction}} + f(*t); // expected-error{{no matching function}}\ + // expected-note 3{{requested here}} +} + +void test_f(int ****p) { + f(p); // expected-note{{requested here}} +} |