blob: 1f99f8c70909424278d4f26a56f51a6862478bf2 [file] [log] [blame]
/*
:name: process_cls_await
:description: process class await method
:should_fail: 0
:tags: 9.7
*/
module process_tb ();
task automatic test (int N);
process job[] = new [N];
foreach(job[i])
fork
automatic int k = j;
begin
job[k] = process::self();
$display("process %d", k);
end
join_none
foreach(job[i])
wait(job[i] != null);
job[1].await();
endtask
initial begin
test(8);
end
endmodule