mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
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]>
18 lines
202 B
Verilog
18 lines
202 B
Verilog
// Check that using a class type as the base type for an enum results in an
|
|
// error.
|
|
|
|
class C;
|
|
endclass
|
|
|
|
module test;
|
|
|
|
enum C {
|
|
A
|
|
} e;
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|