mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-04 08:34:09 +02:00
Check that trying to specify a class method with static lifetime results in an error. Signed-off-by: Lars-Peter Clausen <[email protected]>
19 lines
318 B
Verilog
19 lines
318 B
Verilog
// Check that specifing static lifetime for a class method taks results in an
|
|
// error.
|
|
|
|
module test;
|
|
|
|
class C;
|
|
// This should fail, all class methods have automatic lifetime
|
|
task static t(int x);
|
|
int y;
|
|
y = 2 * x;
|
|
endtask
|
|
endclass
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|