aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-11-26 19:24:29 +0100
committerTristan Gingold <tgingold@free.fr>2019-11-26 19:24:29 +0100
commite50321edd0f9790b7a6c85179979dfe29790580e (patch)
tree2f8dc9308575d2b730b25e27169831583fb7c00d /testsuite
parent9021ecbd3b9a457024d7cb4e6daa1322ecbbd611 (diff)
downloadghdl-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.vhdl7
-rw-r--r--testsuite/synth/issue1032/syn_ent.vhdl10
-rwxr-xr-xtestsuite/synth/issue1032/testsuite.sh10
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"