From a37a5808202167a88c6a97c7b4e5a819423132b8 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Tue, 19 Sep 2023 00:11:10 +0200 Subject: [PATCH] Restrict --- test/testsimplifytokens.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index de6a3e30894..ace04a8bdc1 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -272,11 +272,13 @@ class TestSimplifyTokens : public TestFixture { } void combine_wstrings_Windows() { +#if defined(_WIN32) && defined(UNICODE) const char code[] = "const auto* f() {\n" " return _T(\"abc\") _T(\"def\") _T(\"ghi\");\n" "}"; ASSERT_EQUALS("const auto * f ( ) { return L\"abcdefghi\" ; }", tok(code, /*simplify*/ true, cppcheck::Platform::Type::Native)); +#endif } void combine_ustrings() {