mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-02 22:38:49 +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]>
20 lines
301 B
Verilog
20 lines
301 B
Verilog
// Check that it is not possible to perform non-blocking assignments to a class
|
|
// object variable with automatic lifetime.
|
|
|
|
module test;
|
|
|
|
class C;
|
|
endclass
|
|
|
|
task automatic auto_task;
|
|
C c1, c2;
|
|
c1 <= c2;
|
|
$display("FAILED");
|
|
endtask
|
|
|
|
initial begin
|
|
auto_task;
|
|
end
|
|
|
|
endmodule
|