aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-11-26 19:37:34 +0100
committerTristan Gingold <tgingold@free.fr>2019-11-26 19:37:34 +0100
commit0ae2e726f34f7f12ebc1f7cbfcba5f3edee8b5f4 (patch)
tree782871979c5d1c715fa95ecf18709f71c79ca438 /testsuite
parent6302237e7c3e0f067b4cf6be7cb44f319a825cc0 (diff)
downloadghdl-0ae2e726f34f7f12ebc1f7cbfcba5f3edee8b5f4.tar.gz
ghdl-0ae2e726f34f7f12ebc1f7cbfcba5f3edee8b5f4.tar.bz2
ghdl-0ae2e726f34f7f12ebc1f7cbfcba5f3edee8b5f4.zip
testsuite/synth: add testcase for #1033
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/synth/issue1033/ent.vhdl10
-rw-r--r--testsuite/synth/issue1033/entcos.vhdl10
-rwxr-xr-xtestsuite/synth/issue1033/testsuite.sh10
3 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/synth/issue1033/ent.vhdl b/testsuite/synth/issue1033/ent.vhdl
new file mode 100644
index 000000000..03ddebff0
--- /dev/null
+++ b/testsuite/synth/issue1033/ent.vhdl
@@ -0,0 +1,10 @@
+library ieee;
+use ieee.math_real.all;
+
+entity ent is
+end ent;
+
+architecture a of ent is
+ constant sin_val : real := sin(1.0);
+begin
+end a;
diff --git a/testsuite/synth/issue1033/entcos.vhdl b/testsuite/synth/issue1033/entcos.vhdl
new file mode 100644
index 000000000..ddc984a26
--- /dev/null
+++ b/testsuite/synth/issue1033/entcos.vhdl
@@ -0,0 +1,10 @@
+library ieee;
+use ieee.math_real.all;
+
+entity entcos is
+end entcos;
+
+architecture a of entcos is
+ constant cos_val : real := cos(1.0);
+begin
+end a;
diff --git a/testsuite/synth/issue1033/testsuite.sh b/testsuite/synth/issue1033/testsuite.sh
new file mode 100755
index 000000000..0a9016a09
--- /dev/null
+++ b/testsuite/synth/issue1033/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+for f in ent entcos; do
+ synth $f.vhdl -e $f > syn_$f.vhdl
+done
+clean
+
+echo "Test successful"