From 0ae2e726f34f7f12ebc1f7cbfcba5f3edee8b5f4 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 26 Nov 2019 19:37:34 +0100 Subject: testsuite/synth: add testcase for #1033 --- testsuite/synth/issue1033/ent.vhdl | 10 ++++++++++ testsuite/synth/issue1033/entcos.vhdl | 10 ++++++++++ testsuite/synth/issue1033/testsuite.sh | 10 ++++++++++ 3 files changed, 30 insertions(+) create mode 100644 testsuite/synth/issue1033/ent.vhdl create mode 100644 testsuite/synth/issue1033/entcos.vhdl create mode 100755 testsuite/synth/issue1033/testsuite.sh (limited to 'testsuite') 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" -- cgit v1.2.3