verilator/test_regress/t/t_process_copy_constr.v

26 lines
486 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 Antmicro
// SPDX-License-Identifier: CC0-1.0
class Cls;
2026-03-10 02:38:29 +01:00
int x = 1;
function new();
process p = process::self();
endfunction
endclass
2026-03-10 02:38:29 +01:00
module t ( /*AUTOARG*/
);
initial begin
Cls c, d;
c = new;
c.x = 2;
d = new c;
if (d.x != 2) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule