aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-05-21 18:52:39 +0200
committerTristan Gingold <tgingold@free.fr>2017-05-21 18:52:39 +0200
commit38cfb62cc13100d4d159e83ab7bf8901e1fbf40f (patch)
tree7eda3b806c5efbf08035d9999d50ed87b672bd06 /testsuite
parentb1c3d5f907a567f03e4efaecd4728a3ca888bde5 (diff)
downloadghdl-38cfb62cc13100d4d159e83ab7bf8901e1fbf40f.tar.gz
ghdl-38cfb62cc13100d4d159e83ab7bf8901e1fbf40f.tar.bz2
ghdl-38cfb62cc13100d4d159e83ab7bf8901e1fbf40f.zip
Add testcase for #351
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/issue351/mypkg.vhdl8
-rwxr-xr-xtestsuite/gna/issue351/testsuite.sh9
2 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/issue351/mypkg.vhdl b/testsuite/gna/issue351/mypkg.vhdl
new file mode 100644
index 000000000..db2e62f52
--- /dev/null
+++ b/testsuite/gna/issue351/mypkg.vhdl
@@ -0,0 +1,8 @@
+library ieee;
+use ieee.numeric_std.all;
+
+package MyPkg is
+
+ alias BCDType is unsigned(3 downto 0);
+
+end package MyPkg;
diff --git a/testsuite/gna/issue351/testsuite.sh b/testsuite/gna/issue351/testsuite.sh
new file mode 100755
index 000000000..bd66ee7f7
--- /dev/null
+++ b/testsuite/gna/issue351/testsuite.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure mypkg.vhdl
+
+clean
+
+echo "Test successful"