aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-11-21 17:35:11 +0100
committerTristan Gingold <tgingold@free.fr>2021-11-21 17:35:11 +0100
commitba783ea097c47e1b5ec9fdfcd5f6dcc202ab00d4 (patch)
tree6c21ea724515f10b228fc764edc2b3eff879e107 /testsuite
parentdb8354e41521bc803bf1c832f679780a1bf2fbb2 (diff)
downloadghdl-ba783ea097c47e1b5ec9fdfcd5f6dcc202ab00d4.tar.gz
ghdl-ba783ea097c47e1b5ec9fdfcd5f6dcc202ab00d4.tar.bz2
ghdl-ba783ea097c47e1b5ec9fdfcd5f6dcc202ab00d4.zip
testsuite/gna: add a test for #1919
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/issue1919/repro.vhdl6
-rw-r--r--testsuite/gna/issue1919/repro1.vhdl6
-rwxr-xr-xtestsuite/gna/issue1919/testsuite.sh10
3 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/gna/issue1919/repro.vhdl b/testsuite/gna/issue1919/repro.vhdl
new file mode 100644
index 000000000..64ab6ee11
--- /dev/null
+++ b/testsuite/gna/issue1919/repro.vhdl
@@ -0,0 +1,6 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+package repro is
+ alias reg_Acc : std_logic_vector(3 downto 0) is "0111";
+end repro;
diff --git a/testsuite/gna/issue1919/repro1.vhdl b/testsuite/gna/issue1919/repro1.vhdl
new file mode 100644
index 000000000..0f9e194b4
--- /dev/null
+++ b/testsuite/gna/issue1919/repro1.vhdl
@@ -0,0 +1,6 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+package repro is
+ alias reg_Acc is "0111";
+end repro;
diff --git a/testsuite/gna/issue1919/testsuite.sh b/testsuite/gna/issue1919/testsuite.sh
new file mode 100755
index 000000000..bdf1b9b43
--- /dev/null
+++ b/testsuite/gna/issue1919/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze_failure repro.vhdl
+analyze_failure repro1.vhdl
+
+clean
+
+echo "Test successful"