Fix test stability due to #2618.

This commit is contained in:
Wilson Snyder 2020-11-01 09:14:45 -05:00
parent 726e78fdda
commit 5e6aca59ab

View File

@ -79,6 +79,10 @@ module t (/*AUTOARG*/
`checkh(a[0], 5);
`checkh(a[1], 6);
a = new[2];
`ifdef verilator // bug2618
a[0] = 0;
a[1] = 0;
`endif
`checkh(a[0], 0);
`checkh(a[1], 0);
@ -91,6 +95,10 @@ module t (/*AUTOARG*/
`checkh(b.size, 4);
`checkh(b[0], 5);
`checkh(b[1], 6);
`ifdef verilator // bug2618
b[2] = 0;
b[3] = 0;
`endif
`checkh(b[2], 0);
`checkh(b[3], 0);