aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1038/repro3.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue1038/repro3.vhdl')
-rw-r--r--testsuite/gna/issue1038/repro3.vhdl25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/gna/issue1038/repro3.vhdl b/testsuite/gna/issue1038/repro3.vhdl
new file mode 100644
index 000000000..152c9b48f
--- /dev/null
+++ b/testsuite/gna/issue1038/repro3.vhdl
@@ -0,0 +1,25 @@
+entity repro3 is
+end;
+
+architecture behav of repro3 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;
+
+ signal s : mrec (data(0 to 3));
+ procedure assign (signal sig : out mrec) is
+ variable a : mrec (data(1 to 4));
+ begin
+ sig <= a;
+ end assign;
+begin
+ process
+ begin
+ assign (s);
+ wait;
+ end process;
+end behav;