Files
iverilog/ivtest/ivltests/enum_base_fail_struct.v
T

19 lines
229 B
Verilog
Raw Normal View History

2022-03-19 19:11:00 +01:00
// Check that using a struct type as the base type for an enum results in an
// error.
module test;
typedef struct packed {
int x;
} T;
enum T {
A
} e;
initial begin
$display("FAILED");
end
endmodule