diff options
Diffstat (limited to 'testsuite/gna/issue1038/repro.vhdl')
-rw-r--r-- | testsuite/gna/issue1038/repro.vhdl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/issue1038/repro.vhdl b/testsuite/gna/issue1038/repro.vhdl new file mode 100644 index 000000000..bb2afed79 --- /dev/null +++ b/testsuite/gna/issue1038/repro.vhdl @@ -0,0 +1,24 @@ +package pkg is + type bv_array is array (natural range <>) of bit_vector; + subtype byte_array is bv_array(open)(7 downto 0); + + type mrec is record + b : boolean; + data : byte_array; + end record; +end pkg; + +use work.pkg.all; + +entity repro is +end; + +architecture behav of repro is +begin + process + variable a, b : mrec (data(0 to 3)); + begin + assert a = b; + wait; + end process; +end behav; |