Files
iverilog/ivtest/ivltests/pr1746848.v
T
Stephen Williams cea237b407 Add ivtest to the iverilog source tree
By adding ivtest to the iverilog source tree, it is easier to keep
the regression test synchronized with the source that is being tested.
This should be especially helpful for PRs that add a new feature, and
have a matching ivtest PR with the regression test for that feature.
2022-01-15 10:18:50 -08:00

16 lines
285 B
Verilog

module forBug();
integer i;
integer j;
initial
begin
// This loop sets i=4 .. -1 which is an error
for (i=4; i>-1; i=i-1)
$display("i=%d",i);
// This loop sets j=4 .. 0 which is correct.
for (j=4; j>=0; j=j-1)
$display("j=%d",j);
end
endmodule // forBug