From 479be1af979367d64963afb35c3547f6edad9c83 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 25 Mar 2010 15:42:11 +0000 Subject: [PATCH] Add another test for weird substitutions into function types during template argument deduction git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99510 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaTemplate/instantiate-function-params.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/SemaTemplate/instantiate-function-params.cpp b/test/SemaTemplate/instantiate-function-params.cpp index dfba14a97c..14c4d9f933 100644 --- a/test/SemaTemplate/instantiate-function-params.cpp +++ b/test/SemaTemplate/instantiate-function-params.cpp @@ -42,3 +42,16 @@ void instF0(X0 x0a, X0 x0b) { } template void instF0(X0, X0); + +template struct FuncPtr { }; +template struct FuncPtr { }; + +template R unary_func(A1); + +template +void use_func_ptr() { + FuncPtr > fp1; + FuncPtr > fp2; +}; + +template void use_func_ptr(); -- 2.40.0