Skip to content

Commit

Permalink
Restrict
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Sep 18, 2023
1 parent 2d45605 commit a37a580
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/testsimplifytokens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a37a580

Please sign in to comment.