diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-11-26 19:24:29 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-11-26 19:24:29 +0100 |
commit | e50321edd0f9790b7a6c85179979dfe29790580e (patch) | |
tree | 2f8dc9308575d2b730b25e27169831583fb7c00d /testsuite | |
parent | 9021ecbd3b9a457024d7cb4e6daa1322ecbbd611 (diff) | |
download | ghdl-e50321edd0f9790b7a6c85179979dfe29790580e.tar.gz ghdl-e50321edd0f9790b7a6c85179979dfe29790580e.tar.bz2 ghdl-e50321edd0f9790b7a6c85179979dfe29790580e.zip |
testsuite/synth: add testcase for #1032
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/synth/issue1032/ent.vhdl | 7 | ||||
-rw-r--r-- | testsuite/synth/issue1032/syn_ent.vhdl | 10 | ||||
-rwxr-xr-x | testsuite/synth/issue1032/testsuite.sh | 10 |
3 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/synth/issue1032/ent.vhdl b/testsuite/synth/issue1032/ent.vhdl new file mode 100644 index 000000000..753dc2c0d --- /dev/null +++ b/testsuite/synth/issue1032/ent.vhdl @@ -0,0 +1,7 @@ +entity ent is +end ent; + +architecture a of ent is + constant time_div : time := 20 ns / 2; +begin +end a; diff --git a/testsuite/synth/issue1032/syn_ent.vhdl b/testsuite/synth/issue1032/syn_ent.vhdl new file mode 100644 index 000000000..3cec16531 --- /dev/null +++ b/testsuite/synth/issue1032/syn_ent.vhdl @@ -0,0 +1,10 @@ +entity ent is +end ent; + +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +architecture rtl of ent is +begin +end rtl; diff --git a/testsuite/synth/issue1032/testsuite.sh b/testsuite/synth/issue1032/testsuite.sh new file mode 100755 index 000000000..6bb998bce --- /dev/null +++ b/testsuite/synth/issue1032/testsuite.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +. ../../testenv.sh + +for f in ent; do + synth $f.vhdl -e $f > syn_$f.vhdl +done +clean + +echo "Test successful" |