summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/gna/ticket78/bug.vhdl16
-rwxr-xr-xtestsuite/gna/ticket78/testsuite.sh10
2 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/gna/ticket78/bug.vhdl b/testsuite/gna/ticket78/bug.vhdl
new file mode 100644
index 0000000..5faa595
--- /dev/null
+++ b/testsuite/gna/ticket78/bug.vhdl
@@ -0,0 +1,16 @@
+entity ent is
+end entity;
+
+architecture a of ent is
+ procedure proc(bv : bit_vector) is
+ begin
+ report to_string(bv'length);
+ end procedure;
+begin
+ main : process
+ variable bv : bit_vector(0 to 1);
+ begin
+ proc(bv);
+ wait;
+ end process;
+end architecture;
diff --git a/testsuite/gna/ticket78/testsuite.sh b/testsuite/gna/ticket78/testsuite.sh
new file mode 100755
index 0000000..e0096bb
--- /dev/null
+++ b/testsuite/gna/ticket78/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+GHDL_STD_FLAGS=--std=08
+analyze bug.vhdl
+elab_simulate ent
+clean
+
+echo "Test successful"