verilator/test_regress/t/t_do_while_continue_bad.v

22 lines
403 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2022 Antmicro Ltd
// SPDX-License-Identifier: CC0-1.0
2026-03-08 23:26:40 +01:00
module t (
input clk
);
2026-03-08 23:26:40 +01:00
function void infinite_loop;
do begin
continue;
end while (1);
endfunction
2026-03-08 23:26:40 +01:00
always @(posedge clk) begin
infinite_loop();
$stop;
end
endmodule