diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-06-28 03:03:58 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-06-28 03:03:58 +0200 |
commit | 6a9d99747a94c03a67a82bbca08982e1116446a4 (patch) | |
tree | 188a1d854dc6769bacbcf90da83d85dc8eac2a57 | |
parent | d66272b1571d1e111fd5660ac0f5a68311850fe3 (diff) | |
download | ghdl-6a9d99747a94c03a67a82bbca08982e1116446a4.tar.gz ghdl-6a9d99747a94c03a67a82bbca08982e1116446a4.tar.bz2 ghdl-6a9d99747a94c03a67a82bbca08982e1116446a4.zip |
testsuite/gna: add a test for #2100
-rw-r--r-- | testsuite/gna/issue2100/ent.vhdl | 17 | ||||
-rwxr-xr-x | testsuite/gna/issue2100/testsuite.sh | 13 |
2 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/gna/issue2100/ent.vhdl b/testsuite/gna/issue2100/ent.vhdl new file mode 100644 index 000000000..6b93d3014 --- /dev/null +++ b/testsuite/gna/issue2100/ent.vhdl @@ -0,0 +1,17 @@ +library ieee; +context ieee.ieee_std_context; + +entity ent is + port ( + din : in unsigned(15 downto 0); + dout : out unsigned(31 downto 0) + ); +end ent; + +architecture arch of ent is + +begin + + dout <= resize(din, dout'subtype); + +end architecture; diff --git a/testsuite/gna/issue2100/testsuite.sh b/testsuite/gna/issue2100/testsuite.sh new file mode 100755 index 000000000..f4ccfe70e --- /dev/null +++ b/testsuite/gna/issue2100/testsuite.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze_failure ent.vhdl 2> log.err +if grep 'no overloaded function' log.err; then + exit 1 +fi + +clean + +echo "Test successful" |