verilator/test_regress/t/t_param_store_bad.v

19 lines
439 B
Systemverilog

// 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
module t #(
string S = "<unset>"
);
initial begin
$value$plusargs("S=%s", S); // BAD assignment to S
#1; // Original bug got compile time error only with this line
$display("S=%s", S);
$finish;
end
endmodule