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

10 lines
281 B
Verilog

module top;
// This should be okay because the size matches.
enum reg[3:0] {VAL1, XX1=4'bxxxx} en1;
// But these should fail because the size is wrong.
enum reg[3:0] {VAL2, XX2=3'bxxx} en2;
enum reg[3:0] {VAL3, XX3=5'bxxxxx} en3;
initial $display("FAILED");
endmodule