verilator/test_regress/t/t_inside_unbounded_both.v

17 lines
458 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Test for [$:$] with warning suppressed
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2025 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
2026-01-17 18:19:18 +01:00
module t;
initial begin
int value;
value = 50;
// [$:$] is always true - warning suppressed with -Wno-INSIDETRUE
2026-01-17 18:19:18 +01:00
if (!(value inside {[$ : $]})) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule