blob: 1a34468418e4bb5956a084e6c76cd57a53934787 [file] [log] [blame]
/*
:name: insert-assign
:description: Update queue by assignment (insert)
:should_fail: 0
:tags: 7.10.4
:type: simulation parsing
*/
module top ();
int q[$];
initial begin
q = { 1, 2, 3, 4 };
q = { q[0:1], 10, q[2:$] }; // q.insert(2, 10)
$display(":assert: (%d == 5)", q.size);
$display(":assert: (%d == 10)", q[2]);
end
endmodule