aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1419/model_pkg.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-08-04 10:28:09 +0200
committerTristan Gingold <tgingold@free.fr>2021-08-05 06:04:36 +0200
commit6f7e1ccde2eab638c15d7c651c23629af6f0f8b6 (patch)
treead5ba9a5799aa79ce68beccd83ad68edf21d02d3 /testsuite/gna/issue1419/model_pkg.vhdl
parent8c5fdb98306e45ea1009e919d55623c87b61d03c (diff)
downloadghdl-6f7e1ccde2eab638c15d7c651c23629af6f0f8b6.tar.gz
ghdl-6f7e1ccde2eab638c15d7c651c23629af6f0f8b6.tar.bz2
ghdl-6f7e1ccde2eab638c15d7c651c23629af6f0f8b6.zip
testsuite/gna: add reproducer for #1419
Diffstat (limited to 'testsuite/gna/issue1419/model_pkg.vhdl')
-rw-r--r--testsuite/gna/issue1419/model_pkg.vhdl12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/gna/issue1419/model_pkg.vhdl b/testsuite/gna/issue1419/model_pkg.vhdl
new file mode 100644
index 000000000..2ea1d00fd
--- /dev/null
+++ b/testsuite/gna/issue1419/model_pkg.vhdl
@@ -0,0 +1,12 @@
+package model_pkg is
+ type t_record is
+ record
+ --srt : string (1 downto 1); -- works
+ srt : string;
+ num : natural;
+ end record;
+
+ type t_record_array is array (natural range <>) of t_record;
+
+ constant k : t_record_array := (("a", 0), ("b", 1));
+end package;