diff --git a/src/test/result_tests.cpp b/src/test/result_tests.cpp index 84e02dfc9c3de..261e1f0b9b693 100644 --- a/src/test/result_tests.cpp +++ b/src/test/result_tests.cpp @@ -172,6 +172,12 @@ void ExpectFail(const util::Result& result, bilingual_str str, Args&&... a BOOST_CHECK_EQUAL(result.GetFailure(), F{std::forward(args)...}); } +BOOST_AUTO_TEST_CASE(check_sizes) +{ + static_assert(sizeof(util::Result) == sizeof(void*)*2); + static_assert(sizeof(util::Result) == sizeof(void*)); +} + BOOST_AUTO_TEST_CASE(check_returned) { ExpectResult(VoidSuccessFn(), true, {});