From e50321edd0f9790b7a6c85179979dfe29790580e Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 26 Nov 2019 19:24:29 +0100 Subject: testsuite/synth: add testcase for #1032 --- testsuite/synth/issue1032/ent.vhdl | 7 +++++++ testsuite/synth/issue1032/syn_ent.vhdl | 10 ++++++++++ testsuite/synth/issue1032/testsuite.sh | 10 ++++++++++ 3 files changed, 27 insertions(+) create mode 100644 testsuite/synth/issue1032/ent.vhdl create mode 100644 testsuite/synth/issue1032/syn_ent.vhdl create mode 100755 testsuite/synth/issue1032/testsuite.sh (limited to 'testsuite') 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" -- cgit v1.2.3