verilator/test_regress/t/t_semaphore_bad.v

18 lines
400 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2022 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t(/*AUTOARG*/);
semaphore s;
initial begin
s = new(4);
if (s.bad_method() != 0) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule