Skip to content

Commit cc64353

Browse files
committed
force Unix64 platform in bitfields test
1 parent 4806623 commit cc64353

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/testvalueflow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9084,8 +9084,9 @@ class TestValueFlow : public TestFixture {
90849084

90859085
#define testBitfields(structBody, expectedSize) testBitfields_(__FILE__, __LINE__, structBody, expectedSize)
90869086
void testBitfields_(const char *file, int line, const std::string &structBody, std::size_t expectedSize) {
9087+
const Settings settingsUnix64 = settingsBuilder().platform(Platform::Type::Unix64).build();
90879088
const std::string code = "struct S { " + structBody + " }; const std::size_t size = sizeof(S);";
9088-
const auto values = tokenValues(code.c_str(), "( S");
9089+
const auto values = tokenValues(code.c_str(), "( S", &settingsUnix64);
90899090
ASSERT_LOC(!values.empty(), file, line);
90909091
ASSERT_EQUALS_LOC(expectedSize, values.back().intvalue, file, line);
90919092
}

0 commit comments

Comments
 (0)