diff --git a/tests/cxxrtl/test_value.cc b/tests/cxxrtl/test_value.cc index 0750d412e..b6fe3cf4a 100644 --- a/tests/cxxrtl/test_value.cc +++ b/tests/cxxrtl/test_value.cc @@ -49,4 +49,12 @@ int main() cxxrtl::value<1> sel(0u); assert(val.template bmux<4>(sel).get() == 0xfu); } + + { + // stream operator smoke test + cxxrtl::value<8> val(0x1fu); + std::ostringstream oss; + oss << val; + assert(oss.str() == "8'1f"); + } }