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