verilator/test_regress/t/t_let_stmt_bad.v

20 lines
370 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2025 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
module t;
wire clk;
let letf(x) = (x << 1);
always @(posedge clk) begin
case (0)
0: letf(0); // Bad, need a statement
endcase
end
endmodule