Files
iverilog/ivtest/ivltests/enum_base_integer.v
T
Lars-Peter Clausen 315bc1908a Add regression tests for enum base type
Check that the behavior for all sorts of base types for enums is correctly
implemented. Both for valid as well as invalid base types.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-03-25 21:55:34 +01:00

19 lines
296 B
Verilog

// Check that it is possible to declare an enum type with the integer type as
// the base type.
module test;
enum integer {
A
} E;
initial begin
if ($bits(E) == $bits(integer)) begin
$display("PASSED");
end else begin
$display("FAILED");
end
end
endmodule