diff options
Diffstat (limited to 'testsuite/gna/bug7186/bug.vhdl')
-rw-r--r-- | testsuite/gna/bug7186/bug.vhdl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/bug7186/bug.vhdl b/testsuite/gna/bug7186/bug.vhdl new file mode 100644 index 000000000..958752142 --- /dev/null +++ b/testsuite/gna/bug7186/bug.vhdl @@ -0,0 +1,24 @@ +library IEEE; +use ieee.numeric_std.all; +use ieee.std_logic_1164.all; + +-- A testbench has no ports. +entity system is +end system; + +architecture behav of system is + subtype entry is unsigned(7 downto 0); + type invect is array (natural range <>) of entry; + signal minimum : entry; + signal vec : invect(0 to 20); + function min(iv : invect) return entry is + begin + return iv(0); + end; +begin + process + begin + minimum <= min(invect); -- should be vec not invect + wait; + end process; +end behav; |