Merge pull request #4624 from YosysHQ/emil/cxxrtl-smoke-test

cxxrtl: test stream operator
This commit is contained in:
Emil J 2024-10-09 05:57:13 -07:00 committed by GitHub
commit 038e262332
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -49,4 +49,12 @@ int main()
cxxrtl::value<1> sel(0u);
assert(val.template bmux<4>(sel).get<uint64_t>() == 0xfu);
}
{
// stream operator smoke test
cxxrtl::value<8> val(0x1fu);
std::ostringstream oss;
oss << val;
assert(oss.str() == "8'1f");
}
}