mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 04:03:50 +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]>
20 lines
350 B
Verilog
20 lines
350 B
Verilog
// Check that specifing static lifetime for a class method function results in
|
|
// an error.
|
|
|
|
module test;
|
|
|
|
class C;
|
|
// This should fail, all class methods have automatic lifetime
|
|
function static int t(int x);
|
|
int y;
|
|
y = 2 * x;
|
|
return y;
|
|
endfunction
|
|
endclass
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|