aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"