blob: 75577ec2540a8266eb1ef393448cf018aeaf8bfc [file] [log] [blame]
/*
:name: associative-arrays-delete
:description: Test support of associative arrays methods (delete)
:should_fail: 0
:tags: 7.9.2 7.9
*/
module top ();
int map [ string ];
initial begin
map[ "hello" ] = 1;
map[ "sad" ] = 2;
map[ "world" ] = 3;
$display(":assert: (%d == 3)", map.size);
map.delete( "sad" );
$display(":assert: (%d == 2)", map.size);
map.delete;
$display(":assert: (%d == 0)", map.size);
end
endmodule