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

17 lines
193 B
Verilog

module bug();
reg [7:0] memory[1:0];
reg index;
initial begin
index = 0;
memory[~index] = 1;
if (memory[1] === 1)
$display("PASSED");
else
$display("FAILED");
end
endmodule