mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-02 22:38:49 +02:00
Check that using a class task through an object method call in expression context reports a compile/elaboration error instead of triggering an assert. Signed-off-by: Lars-Peter Clausen <[email protected]>
20 lines
234 B
Verilog
20 lines
234 B
Verilog
// Check that using a class task as an expression reports an error.
|
|
|
|
module test;
|
|
|
|
class C;
|
|
task t;
|
|
endtask
|
|
endclass
|
|
|
|
C c;
|
|
|
|
initial begin
|
|
int x;
|
|
c = new;
|
|
x = c.t();
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|