aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue938/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-12-06 20:47:31 +0100
committerTristan Gingold <tgingold@free.fr>2021-12-06 20:47:54 +0100
commitf5cb7116f863b69bcc9b93a52e8b7b9d62273fd7 (patch)
treeeb70942c2bcf2f7d73c865724f4554cdf4e42ae4 /testsuite/synth/issue938/testsuite.sh
parent88425cb365578cacd46939d93f837b2ac7b0d5e8 (diff)
downloadghdl-f5cb7116f863b69bcc9b93a52e8b7b9d62273fd7.tar.gz
ghdl-f5cb7116f863b69bcc9b93a52e8b7b9d62273fd7.tar.bz2
ghdl-f5cb7116f863b69bcc9b93a52e8b7b9d62273fd7.zip
testsuite/synth: add a test for #938
Diffstat (limited to 'testsuite/synth/issue938/testsuite.sh')
-rwxr-xr-xtestsuite/synth/issue938/testsuite.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/issue938/testsuite.sh b/testsuite/synth/issue938/testsuite.sh
new file mode 100755
index 000000000..ea5722dfc
--- /dev/null
+++ b/testsuite/synth/issue938/testsuite.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze latches.vhdl tb_latches.vhdl
+elab_simulate tb_latches
+
+clean
+
+synth --latches latches.vhdl -e > syn_latches.vhdl
+analyze syn_latches.vhdl tb_latches.vhdl
+elab_simulate tb_latches
+
+clean
+
+echo "Test successful"