From 42b91517f46ca9454a8ae3f4014d9eee49c48c4c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 30 Mar 2020 08:08:36 +0200 Subject: testsuite/synth: add test for #1178 --- testsuite/synth/issue1178/issue1.vhdl | 14 ++++++++++++++ testsuite/synth/issue1178/testsuite.sh | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 testsuite/synth/issue1178/issue1.vhdl create mode 100755 testsuite/synth/issue1178/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/synth/issue1178/issue1.vhdl b/testsuite/synth/issue1178/issue1.vhdl new file mode 100644 index 000000000..fcff6f370 --- /dev/null +++ b/testsuite/synth/issue1178/issue1.vhdl @@ -0,0 +1,14 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity issue1 is + port (foobar : in std_logic_vector(3 downto 0); + foo : out std_logic_vector(1 downto 0); + bar : out std_logic_vector(1 downto 0)); +end issue1; + +architecture behav of issue1 is +begin + (foo, bar) <= foobar; +end architecture; + diff --git a/testsuite/synth/issue1178/testsuite.sh b/testsuite/synth/issue1178/testsuite.sh new file mode 100755 index 000000000..0e930337b --- /dev/null +++ b/testsuite/synth/issue1178/testsuite.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +synth_analyze issue1 +clean + +echo "Test successful" -- cgit v1.2.3