mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 06:03:11 +02:00
Check for various dynamic array and queue types that their type compatibility is handled correctly. Signed-off-by: Lars-Peter Clausen <[email protected]>
18 lines
334 B
Verilog
18 lines
334 B
Verilog
// Check that it is not possible to assign a dynamic array with an enum
|
|
// element type to a dynamic array with a packed type. Even if the enum base
|
|
// type is the same as the packed type.
|
|
|
|
module test;
|
|
|
|
enum logic [31:0] {
|
|
A
|
|
} d1[];
|
|
logic [31:0] d2[];
|
|
|
|
initial begin
|
|
d1 = d2;
|
|
$dispaly("FAILED");
|
|
end
|
|
|
|
endmodule
|