mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 08:25:32 +02:00
Current regression tests only cover checking for invalid non-blocking writes to constructs that are valid in Verilog. Add two tests to additionally cover some SystemVerilog constructs. * Non-blocking writes to members of a struct typed variable with automatic lifetime * Non-blocking writes to class typed variables with automatic lifetime Signed-off-by: Lars-Peter Clausen <[email protected]>
19 lines
303 B
Verilog
19 lines
303 B
Verilog
// Check that it is not possible to perform non-blocking assignments to fields
|
|
// of structs with automatic lifetime.
|
|
|
|
module test;
|
|
|
|
task automatic auto_task;
|
|
struct packed {
|
|
logic x;
|
|
} s;
|
|
s.x <= 10;
|
|
$display("FAILED");
|
|
endtask
|
|
|
|
initial begin
|
|
auto_task;
|
|
end
|
|
|
|
endmodule
|