Skip to content

Commit

Permalink
Fixed test, validate that using no bound has size 32
Browse files Browse the repository at this point in the history
    * tests/idl4/enum/client.cpp:
  • Loading branch information
jwillemsen committed Aug 6, 2023
1 parent 0a68eae commit 1df9f32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/idl4/enum/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ int main (int /*argc*/, char* /*argv*/[])
{
TAOX11_TEST_ERROR << "Type of MyEnumBound16 is not uint16_t" << std::endl;
}
if (sizeof(uint32_t) != sizeof (MyEnumBound16))
if (sizeof(uint32_t) != sizeof (MyEnumBound32))
{
TAOX11_TEST_ERROR << "Type of MyEnumBound32 is not uint32_t" << std::endl;
}
if (sizeof(uint32_t) != sizeof (MyEnum))
{
TAOX11_TEST_ERROR << "Type of MyEnum is not uint32_t" << std::endl;
}

return 0;
}

0 comments on commit 1df9f32

Please sign in to comment.