Regression test that optional for_step works

Add the br_gh801b.v regression test.
This commit is contained in:
Stephen Williams 2022-12-11 16:40:30 -08:00
parent 5b9ceee062
commit 0acb938f79
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
module main;
initial begin
int idx;
for (idx = 1 ; idx < 5 ; ) begin
$display("... %02d", idx);
idx += 1;
end
if (idx !== 5) begin
$display("FAILED -- idx=%0d", idx);
$finish;
end
idx = 2;
for ( ; idx < 5 ; ) begin
$display("... %02d", idx);
idx += 1;
end
$display("PASSED");
$finish;
end
endmodule // main

View File

@ -222,6 +222,7 @@ br_gh699 CE,-g2009 ivltests
br_gh756 normal,-g2009 ivltests
br_gh782a normal,-g2009 ivltests gold=br_gh782a.gold
br_gh801 normal,-g2009 ivltests
br_gh801b normal,-g2009 ivltests
br_ml20171017 normal,-g2009 ivltests
br_ml20180227 CE,-g2009 ivltests
br_ml20180309a normal,-g2009 ivltests