compilerplugins/clang/test/elidestringvar.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 780d786d721674f35efe867b1e5cd5b405dfb63d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Tue Nov 23 07:47:21 2021 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Tue Nov 23 09:35:55 2021 +0100 Fix test for clang-cl with the MSVC template instantiation model (Otherwise, the FunctionDecl's body was null and all the error and note diagnostics were flagged as expected but not seen.) Change-Id: I32acb6e0028433c9b40545cf91d8fe1acd19a77a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125682 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/compilerplugins/clang/test/elidestringvar.cxx b/compilerplugins/clang/test/elidestringvar.cxx index 16fa7c570914..0b21644724a4 100644 --- a/compilerplugins/clang/test/elidestringvar.cxx +++ b/compilerplugins/clang/test/elidestringvar.cxx @@ -40,4 +40,7 @@ template <sal_Unicode C> OUString f(sal_Unicode c, int n) } } +// Trigger clang-cl to actually parse f under MSVC template instantiation model: +template OUString f<'a'>(sal_Unicode, int); + /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */