aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-11-14 21:02:10 +0100
committerTristan Gingold <tgingold@free.fr>2016-12-05 03:25:21 +0100
commite195c1f62558e7896515a5eeff11f21dc8ddb37f (patch)
tree3b2385c9120f7852d081cf6f55bdc4c064f25b86
parentc6cbd45bb6d1b4dd77094374f802e53957cf664b (diff)
downloadghdl-e195c1f62558e7896515a5eeff11f21dc8ddb37f.tar.gz
ghdl-e195c1f62558e7896515a5eeff11f21dc8ddb37f.tar.bz2
ghdl-e195c1f62558e7896515a5eeff11f21dc8ddb37f.zip
Add testcase for previous patch.
-rw-r--r--testsuite/gna/bug064/repro.vhdl17
-rwxr-xr-xtestsuite/gna/bug064/testsuite.sh10
2 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/gna/bug064/repro.vhdl b/testsuite/gna/bug064/repro.vhdl
new file mode 100644
index 000000000..32c94b820
--- /dev/null
+++ b/testsuite/gna/bug064/repro.vhdl
@@ -0,0 +1,17 @@
+package gen is
+ generic (type t);
+end gen;
+
+entity e is
+end entity;
+
+library ieee;
+use ieee.std_logic_1164.all;
+
+architecture a of e is
+ subtype T_DATA is std_logic_vector(31 downto 0);
+ type T_DATA_VECTOR is array(natural range <>) of T_DATA;
+
+ package pkg is new work.gen (t => t_data_vector);
+begin
+end architecture;
diff --git a/testsuite/gna/bug064/testsuite.sh b/testsuite/gna/bug064/testsuite.sh
new file mode 100755
index 000000000..b44fe1761
--- /dev/null
+++ b/testsuite/gna/bug064/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze_failure repro.vhdl
+
+clean
+
+echo "Test successful"