Files
iverilog/ivtest/ivltests/pr1625912.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

24 lines
425 B
Verilog

/* PR1625912 */
/*
* Substatuting in either of the commented out lines caused VVP to fail.
*/
module top;
integer cnt;
real result, win;
initial begin
cnt = -10;
for (result=-10; result<=10; result=result+2) begin
#1 if (result != cnt) begin
$display("FAILED -- cnt=%0d, result=%f", cnt, result);
end
cnt = cnt + 2;
end
$display("PASSED");
$finish;
end
endmodule