aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1726/orig.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-04-17 09:29:58 +0200
committerTristan Gingold <tgingold@free.fr>2021-04-17 09:29:58 +0200
commitd3eb82abb6eb53d436fef6231ae0abed9d6bb8c5 (patch)
treee7752ee6a67acd702536d10e5a4ac78ffc072c3e /testsuite/gna/issue1726/orig.vhdl
parentfaafe7c3019fa137487120ee183b82c6259f16eb (diff)
downloadghdl-d3eb82abb6eb53d436fef6231ae0abed9d6bb8c5.tar.gz
ghdl-d3eb82abb6eb53d436fef6231ae0abed9d6bb8c5.tar.bz2
ghdl-d3eb82abb6eb53d436fef6231ae0abed9d6bb8c5.zip
testsuite/gna: add a test for #1726
Diffstat (limited to 'testsuite/gna/issue1726/orig.vhdl')
-rw-r--r--testsuite/gna/issue1726/orig.vhdl14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/gna/issue1726/orig.vhdl b/testsuite/gna/issue1726/orig.vhdl
new file mode 100644
index 000000000..0ddc2b4cf
--- /dev/null
+++ b/testsuite/gna/issue1726/orig.vhdl
@@ -0,0 +1,14 @@
+package my_gpkg is
+ generic (
+ type data_t;
+ c_default : data_t);
+
+ constant my_constant : data_t := c_default;
+
+end package my_gpkg;
+
+use std.standard.all;
+package my_pkg_int is new work.my_gpkg
+ generic map (
+ data_t => integer,
+ c_default => 5);