verilator/test_regress/t/t_class_param_unused_default.v
2023-04-28 07:20:25 -04:00

27 lines
519 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2023 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
class Bar#(type T = int);
T t;
function new;
t = new;
endfunction
endclass
class Baz;
int x = 1;
endclass
module t (/*AUTOARG*/);
initial begin
Bar#(Baz) bar_baz = new;
if (bar_baz.t.x != 1) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule