verilator/test_regress/t/t_class_new_default.v

29 lines
540 B
Systemverilog
Raw Normal View History

2024-03-02 14:06:54 +00:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
class ClsDef;
int imembera;
function new(default);
imembera = i + 1;
endfunction
endclass
class ClsDefFwd;
int imembera;
extern function new(default);
endclass
function ClsDefFwd::new(default);
endfunction
module t (/*AUTOARG*/);
initial begin
// TODO real test
$stop;
end
endmodule