aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/ticket66/bug.vhdl20
-rwxr-xr-xtestsuite/gna/ticket66/testsuite.sh14
2 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/gna/ticket66/bug.vhdl b/testsuite/gna/ticket66/bug.vhdl
new file mode 100644
index 000000000..9289e9326
--- /dev/null
+++ b/testsuite/gna/ticket66/bug.vhdl
@@ -0,0 +1,20 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+
+entity ent is
+end entity;
+
+architecture a of ent is
+ procedure proc(constant value : std_logic_vector) is
+ begin
+ end procedure;
+begin
+ main : process is
+ constant const : unsigned(1 downto 0) := "00";
+ begin
+ proc(std_logic_vector(const));
+ wait;
+ end process;
+end architecture;
+
diff --git a/testsuite/gna/ticket66/testsuite.sh b/testsuite/gna/ticket66/testsuite.sh
new file mode 100755
index 000000000..8598fd091
--- /dev/null
+++ b/testsuite/gna/ticket66/testsuite.sh
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze bug.vhdl
+elab_simulate ent
+clean
+
+GHDL_STD_FLAGS=--std=08
+analyze bug.vhdl
+elab_simulate ent
+clean
+
+echo "Test successful"