aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue2021/repro1.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/issue2021/repro1.vhdl')
-rw-r--r--testsuite/synth/issue2021/repro1.vhdl15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/synth/issue2021/repro1.vhdl b/testsuite/synth/issue2021/repro1.vhdl
new file mode 100644
index 000000000..0344f41cd
--- /dev/null
+++ b/testsuite/synth/issue2021/repro1.vhdl
@@ -0,0 +1,15 @@
+entity ent is
+end ent;
+
+architecture ent of ent is
+ type my_record is record
+ field_a : bit_vector; -- Parametrized on instantiation
+ field_b : bit_vector(31 downto 0); -- Width set by generic
+ end record;
+
+ signal bar : my_record(field_a(7 downto 0));
+ signal baz : my_record(field_a(7 downto 0));
+
+begin
+
+end ent;