aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/issue1387/repro1.vhdl15
-rwxr-xr-xtestsuite/gna/issue1387/testsuite.sh10
2 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/gna/issue1387/repro1.vhdl b/testsuite/gna/issue1387/repro1.vhdl
new file mode 100644
index 000000000..4422c81cc
--- /dev/null
+++ b/testsuite/gna/issue1387/repro1.vhdl
@@ -0,0 +1,15 @@
+package support_pkg is
+ function ">" ( l,r : integer ) return bit;
+end support_pkg;
+
+use work.support_pkg.all;
+
+entity repro1 is
+end;
+
+architecture behav of repro1 is
+ signal sov : bit_vector(0 to 21);
+begin
+ cfg : if sov'length > 1 generate
+ end generate;
+end;
diff --git a/testsuite/gna/issue1387/testsuite.sh b/testsuite/gna/issue1387/testsuite.sh
new file mode 100755
index 000000000..2251495f1
--- /dev/null
+++ b/testsuite/gna/issue1387/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+export GHDL_STD_FLAGS=--std=08
+analyze repro1.vhdl
+
+clean
+
+echo "Test successful"