blob: 0a237d86b430f991b89c94891cd4052069428f67 [file] [log] [blame]
/*
:name: associative-arrays-literals
:description: Test associative arrays literals support
:should_fail: 0
:tags: 7.9.11 7.8
:type: simulation parsing
*/
module top ();
string words [int] = '{default: "hello"};
initial begin
$display(":assert: ('%s' == 'hello')", words[1]);
words[1] = "world";
$display(":assert: (('%s' == 'hello') and ('%s' == 'world'))",
words[0], words[1]);
end
endmodule