mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 23:27:48 +00:00
68927d4fd3
Prevents the possibility of assigning an integer to a class reference, both at the SystemVerilog and the emitted C++ levels. Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
22 lines
386 B
Systemverilog
22 lines
386 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
// any use, without warranty, 2022 by Antmicro Ltd.
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
class Cls;
|
|
endclass : Cls
|
|
|
|
module t (/*AUTOARG*/);
|
|
Cls c;
|
|
|
|
task t(Cls c); endtask
|
|
|
|
initial begin
|
|
c = 0;
|
|
c = 1;
|
|
t(0);
|
|
t(1);
|
|
end
|
|
endmodule
|