blob: 690e693769e242b6496e1c6377761019efa189a3 [file] [log] [blame]
/*
:name: associative-arrays-exists
:description: Test support of associative arrays methods (exists)
:should_fail: 0
:tags: 7.9.3 7.9
:type: simulation parsing
*/
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