Skip to content

Commit

Permalink
Merge pull request #4624 from YosysHQ/emil/cxxrtl-smoke-test
Browse files Browse the repository at this point in the history
cxxrtl: test stream operator
  • Loading branch information
widlarizer authored Oct 9, 2024
2 parents eefd111 + 997cb30 commit 038e262
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/cxxrtl/test_value.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

0 comments on commit 038e262

Please sign in to comment.