summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-11-14 08:28:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-11-14 10:23:46 +0100
commitb6583a9283e1b57c43dd5a4d8eff54d16c112020 (patch)
tree421cc71a275a0a2a9eadf79f1ee7b4cef46b3b8e /compilerplugins
parentc1a535ee2db757b2e40683dc918cbad8b7429cfa (diff)
Adapt compilerplugins/clang/test/fieldcast.cxx to clang-cl
...where loplugin:locking2 is disabled Change-Id: Id58cbedab191c59b901ef1a0e0dd82b8f8438c4e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159400 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/test/fieldcast.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/fieldcast.cxx b/compilerplugins/clang/test/fieldcast.cxx
index 98e43d023324..6d0437d04e6f 100644
--- a/compilerplugins/clang/test/fieldcast.cxx
+++ b/compilerplugins/clang/test/fieldcast.cxx
@@ -7,6 +7,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#if defined _WIN32 //TODO, #include <sys/file.h>
+// expected-no-diagnostics
+#else
+
#include <rtl/ustring.hxx>
#include <rtl/ref.hxx>
#include <memory>
@@ -53,4 +57,7 @@ class Test5
std::shared_ptr<Foo> m_p;
void test1() { (void)dynamic_cast<Bar*>(m_p.get()); }
};
+
+#endif
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */