Skip to content

Commit a37a580

Browse files
committed
Restrict
1 parent 2d45605 commit a37a580

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/testsimplifytokens.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,13 @@ class TestSimplifyTokens : public TestFixture {
272272
}
273273

274274
void combine_wstrings_Windows() {
275+
#if defined(_WIN32) && defined(UNICODE)
275276
const char code[] = "const auto* f() {\n"
276277
" return _T(\"abc\") _T(\"def\") _T(\"ghi\");\n"
277278
"}";
278279

279280
ASSERT_EQUALS("const auto * f ( ) { return L\"abcdefghi\" ; }", tok(code, /*simplify*/ true, cppcheck::Platform::Type::Native));
281+
#endif
280282
}
281283

282284
void combine_ustrings() {

0 commit comments

Comments
 (0)