From c91b6b08c87a829ebb0692e2bc591aa580fb7a8a Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 15 May 2015 22:10:31 +0200 Subject: Testcase for ticket66. --- testsuite/gna/ticket66/bug.vhdl | 20 ++++++++++++++++++++ testsuite/gna/ticket66/testsuite.sh | 14 ++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 testsuite/gna/ticket66/bug.vhdl create mode 100755 testsuite/gna/ticket66/testsuite.sh 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" -- cgit v1.2.3