diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-10-16 05:04:30 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-10-16 05:04:30 +0200 |
commit | 80cb14833b1e48279f5c6bffdc75af1618183983 (patch) | |
tree | b90f1280fde07913046e87dcc8492d0e8423d24c /testsuite | |
parent | 5efe92abd49565576c91a941e6aa1036a2c5da8a (diff) | |
download | ghdl-80cb14833b1e48279f5c6bffdc75af1618183983.tar.gz ghdl-80cb14833b1e48279f5c6bffdc75af1618183983.tar.bz2 ghdl-80cb14833b1e48279f5c6bffdc75af1618183983.zip |
Add reproducer for #441
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/issue441/e.vhdl | 9 | ||||
-rwxr-xr-x | testsuite/gna/issue441/testsuite.sh | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue441/e.vhdl b/testsuite/gna/issue441/e.vhdl new file mode 100644 index 000000000..d55b83b5a --- /dev/null +++ b/testsuite/gna/issue441/e.vhdl @@ -0,0 +1,9 @@ +entity e is end entity; +architecture a of e is + component c is + generic(constant k :natural := 0); + port (signal s :bit_vector(k to k)); + end component; +begin + inst: c port map(s(k) => '0'); +end architecture; diff --git a/testsuite/gna/issue441/testsuite.sh b/testsuite/gna/issue441/testsuite.sh new file mode 100755 index 000000000..dc643f60e --- /dev/null +++ b/testsuite/gna/issue441/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze_failure e.vhdl + +clean + +echo "Test successful" |