summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-11-23 07:47:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-11-23 09:35:55 +0100
commit780d786d721674f35efe867b1e5cd5b405dfb63d (patch)
tree48ed556eee7b01e0bd3e00e1a252d84af131efd3 /compilerplugins
parented662bcc20804e8b8d5946904f1b577a825f09de (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/test/elidestringvar.cxx3
1 files changed, 3 insertions, 0 deletions
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: */