verilator/test_regress/t/t_class_mod_bad.v

26 lines
502 B
Systemverilog
Raw Normal View History

2020-11-13 00:45:12 +00:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2020 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
// verilator lint_off MULTITOP
module M;
class Cls;
function string name;
return $sformatf("m %m");
endfunction
endclass
endmodule
module t (/*AUTOARG*/);
string s;
initial begin
M::Cls p;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule