verilator/test_regress/t/t_foreach_bad.v
2023-09-10 18:53:51 -04:00

25 lines
502 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2020 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (/*AUTOARG*/);
integer a, b;
reg [2:0][2:0] array;
initial begin
foreach (array); // no index
foreach (array.array[a]); // not supported
foreach (array[a.b]); // no index
$write("*-* All Finished *-*\n");
$finish;
end
endmodule