mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-07 06:46:06 +00:00
Implement IdString garbage collection instead of refcounting.
This commit is contained in:
parent
b3f79ed8e7
commit
bc7895505e
6 changed files with 272 additions and 90 deletions
|
|
@ -361,6 +361,12 @@ namespace RTLIL {
|
|||
EXPECT_FALSE(Const().is_onehot(&pos));
|
||||
}
|
||||
|
||||
TEST_F(KernelRtlilTest, OwningIdString) {
|
||||
OwningIdString own("\\figblortle");
|
||||
OwningIdString::collect_garbage();
|
||||
EXPECT_EQ(own.str(), "\\figblortle");
|
||||
}
|
||||
|
||||
class WireRtlVsHdlIndexConversionTest :
|
||||
public KernelRtlilTest,
|
||||
public testing::WithParamInterface<std::tuple<bool, int, int>>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue