diff --git a/clang/test/SemaTemplate/instantiate-function-params.cpp b/clang/test/SemaTemplate/instantiate-function-params.cpp index dfba14a97c8c..14c4d9f933a7 100644 --- a/clang/test/SemaTemplate/instantiate-function-params.cpp +++ b/clang/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();