Tests: Fix race in t_select_sideeffect.

This commit is contained in:
Wilson Snyder 2026-03-16 22:23:07 -04:00
parent de2c891ca5
commit f4b09cffa7
1 changed files with 1 additions and 3 deletions

View File

@ -22,12 +22,10 @@ module t;
initial begin
foo = new;
if (x[foo.get()] != 2) $stop;
if (x[foo.get2()] != 3) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
always begin
if (x[foo.get2()] != 3) $stop;
end
final begin
if (x[foo.get()] != 4) $stop;
end