Skip to content

Commit

Permalink
Fix test failure on 32bit platform (#5803)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Dec 23, 2023
1 parent 06e6c3e commit 9118d33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2173,6 +2173,7 @@ class TestOther : public TestFixture {
"}\n");
ASSERT_EQUALS("[test.cpp:1]: (performance) Function parameter 't' should be passed by const reference.\n", errout.str());

Settings settings0 = settingsBuilder(_settings).platform(Platform::Type::Unix64).build();
check("struct S {\n" // #12138
" union {\n"
" int a = 0;\n"
Expand All @@ -2189,7 +2190,7 @@ class TestOther : public TestFixture {
"};\n"
"void f(S s) {\n"
" if (s.x > s.y) {}\n"
"}\n");
"}\n", /*filename*/ nullptr, /*inconclusive*/ true, /*runSimpleChecks*/ true, /*verbose*/ false, &settings0);
ASSERT_EQUALS("", errout.str());

check("struct S { std::list<int> l; };\n" // #12147
Expand Down

0 comments on commit 9118d33

Please sign in to comment.