verilator/test_regress/t/t_lint_latch_bad_2.v

17 lines
343 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module for Issue#1609
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2020 by Julien Margetts.
// SPDX-License-Identifier: Unlicense
module t (/*AUTOARG*/ a, b, o);
input a;
input b;
output reg o;
always_comb
if (a)
o = b;
endmodule