aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue606/repro1a.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-06-19 06:41:31 +0200
committerTristan Gingold <tgingold@free.fr>2018-06-19 06:41:31 +0200
commitc00074985783c13dce54de3814c39e76cf269268 (patch)
treed92e40eaefe5494c2f0e0bad042032595f1ec4ce /testsuite/gna/issue606/repro1a.vhdl
parent3a9ebc277637dcfc029038caf6b37fb7580d409d (diff)
downloadghdl-c00074985783c13dce54de3814c39e76cf269268.tar.gz
ghdl-c00074985783c13dce54de3814c39e76cf269268.tar.bz2
ghdl-c00074985783c13dce54de3814c39e76cf269268.zip
Add reproducer for #606
Diffstat (limited to 'testsuite/gna/issue606/repro1a.vhdl')
-rw-r--r--testsuite/gna/issue606/repro1a.vhdl15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/gna/issue606/repro1a.vhdl b/testsuite/gna/issue606/repro1a.vhdl
new file mode 100644
index 000000000..755d45664
--- /dev/null
+++ b/testsuite/gna/issue606/repro1a.vhdl
@@ -0,0 +1,15 @@
+entity repro1a is
+ generic (depth : natural := 3);
+end repro1a;
+
+architecture behav of repro1a is
+ component repro1b is
+ generic (depth : natural);
+ end component;
+begin
+ assert false report "repro1a: depth = " & natural'image (depth)
+ severity note;
+
+ comp1a : repro1b
+ generic map (depth => depth);
+end behav;