diff options
author | Tristan Gingold | 2014-01-02 00:24:53 +0100 |
---|---|---|
committer | Tristan Gingold | 2014-01-02 00:24:53 +0100 |
commit | 720e790f21efcdaa98576d4dbc26050c3a5422af (patch) | |
tree | 69e003db9f1fa5fce0b5e898264802a4573e8508 /testsuite/gna/bug7186 | |
parent | 34d14ac4930ba9bcd4bb6d26e5995f5bd21a5e61 (diff) | |
download | ghdl-720e790f21efcdaa98576d4dbc26050c3a5422af.tar.gz ghdl-720e790f21efcdaa98576d4dbc26050c3a5422af.tar.bz2 ghdl-720e790f21efcdaa98576d4dbc26050c3a5422af.zip |
Fix bug7186: missing check in Sem_Parenthesis_Name for non-overloaded case.
Diffstat (limited to 'testsuite/gna/bug7186')
-rw-r--r-- | testsuite/gna/bug7186/bug.vhdl | 24 | ||||
-rwxr-xr-x | testsuite/gna/bug7186/testsuite.sh | 9 |
2 files changed, 33 insertions, 0 deletions
diff --git a/testsuite/gna/bug7186/bug.vhdl b/testsuite/gna/bug7186/bug.vhdl new file mode 100644 index 0000000..9587521 --- /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; diff --git a/testsuite/gna/bug7186/testsuite.sh b/testsuite/gna/bug7186/testsuite.sh new file mode 100755 index 0000000..fada702 --- /dev/null +++ b/testsuite/gna/bug7186/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze_failure bug.vhdl + +clean + +echo "Test successful" |