Skip to content

Commit 9118d33

Browse files
Fix test failure on 32bit platform (#5803)
1 parent 06e6c3e commit 9118d33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/testother.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,6 +2173,7 @@ class TestOther : public TestFixture {
21732173
"}\n");
21742174
ASSERT_EQUALS("[test.cpp:1]: (performance) Function parameter 't' should be passed by const reference.\n", errout.str());
21752175

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

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

0 commit comments

Comments
 (0)