aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-01-10 19:20:10 +0100
committerTristan Gingold <tgingold@free.fr>2020-01-10 19:20:10 +0100
commit3a91377e172c469268cdeb14730b8d97af5b0497 (patch)
tree9b4e75c75ea8e7d1b8851edd935eb8fecbb4531d /testsuite
parente17215ff6b3ca865aa09111a15c551e5f0cf1fac (diff)
downloadghdl-3a91377e172c469268cdeb14730b8d97af5b0497.tar.gz
ghdl-3a91377e172c469268cdeb14730b8d97af5b0497.tar.bz2
ghdl-3a91377e172c469268cdeb14730b8d97af5b0497.zip
testsuite/synth: add a test for #1075
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/synth/issue1075/ent.vhdl12
-rwxr-xr-xtestsuite/synth/issue1075/testsuite.sh7
2 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/synth/issue1075/ent.vhdl b/testsuite/synth/issue1075/ent.vhdl
new file mode 100644
index 000000000..a4dd7b304
--- /dev/null
+++ b/testsuite/synth/issue1075/ent.vhdl
@@ -0,0 +1,12 @@
+library ieee;
+use ieee.math_real.all;
+
+entity ent is
+end ent;
+
+architecture a of ent is
+constant DELAY_NSEC : real := -1.0;
+constant DELAY_TAPS_INT : integer :=
+ integer(round(DELAY_NSEC / 0.078125));
+begin
+end a;
diff --git a/testsuite/synth/issue1075/testsuite.sh b/testsuite/synth/issue1075/testsuite.sh
new file mode 100755
index 000000000..bc1a4b842
--- /dev/null
+++ b/testsuite/synth/issue1075/testsuite.sh
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+synth ent.vhdl -e > syn_ent.vhdl
+
+echo "Test successful"