Add additional test to static_cast to make sure address is preserved

This commit is contained in:
Ion Gaztañaga
2026-01-04 20:22:44 +01:00
parent e7bc830886
commit a16cac255b

View File

@@ -417,6 +417,7 @@ void test_cast()
pcint = static_cast<pcint_t>(pcvoid);
BOOST_TEST(pint == pvoid);
BOOST_TEST(pcint == pcvoid);
BOOST_TEST(pcint == pint);
//Test valid static_pointer_cast conversions