From cea5cdaaacc5b599ce7d9007315f029095ff1321 Mon Sep 17 00:00:00 2001 From: Tristan Gingold <tgingold@free.fr> Date: Thu, 2 Apr 2020 07:44:20 +0200 Subject: testsuite/synth: add a test for #1186 --- testsuite/synth/issue1186/ent.vhdl | 15 +++++++++++++++ testsuite/synth/issue1186/testsuite.sh | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 testsuite/synth/issue1186/ent.vhdl create mode 100755 testsuite/synth/issue1186/testsuite.sh (limited to 'testsuite/synth') diff --git a/testsuite/synth/issue1186/ent.vhdl b/testsuite/synth/issue1186/ent.vhdl new file mode 100644 index 000000000..56a74d7d7 --- /dev/null +++ b/testsuite/synth/issue1186/ent.vhdl @@ -0,0 +1,15 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity ent is +end; + +architecture a of ent is + component c is + generic ( + G_REAL : real + ); + end component; +begin + c_inst: c generic map (G_REAL => 1.5); +end; diff --git a/testsuite/synth/issue1186/testsuite.sh b/testsuite/synth/issue1186/testsuite.sh new file mode 100755 index 000000000..85f3809ae --- /dev/null +++ b/testsuite/synth/issue1186/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +synth ent.vhdl -e > syn_ent.vhdl +clean + +echo "Test successful" -- cgit v1.2.3