verilator/test_regress/t/t_class_mispure_bad.v

22 lines
446 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2024 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
virtual class Base;
2026-03-08 23:26:40 +01:00
pure virtual function void pvfunc();
endclass
class Bar extends Base;
2026-03-08 23:26:40 +01:00
// Bad, no implementation of pvfunc
endclass
module t;
2026-03-08 23:26:40 +01:00
initial begin
automatic Bar obj = new();
obj.pvfunc();
$stop;
end
endmodule