mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-05 08:52:33 +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
320 B
Verilog
18 lines
320 B
Verilog
// Check that it is not possible to assign a queue with an enum element type to
|
|
// a queue with a packed type. Even if the enum base type is the same as the
|
|
// packed type.
|
|
|
|
module test;
|
|
|
|
enum logic [31:0] {
|
|
A
|
|
} q1[$];
|
|
logic [31:0] q2[$];
|
|
|
|
initial begin
|
|
q1 = q2;
|
|
$dispaly("FAILED");
|
|
end
|
|
|
|
endmodule
|