From 7120d05a841597f83dcb6247c4c9d6b62f6fdefc Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 27 Jul 2022 05:43:18 +0200 Subject: testsuite/synth: add a test for #2139 --- testsuite/synth/issue2139/repro.vhdl | 13 +++++++++++++ testsuite/synth/issue2139/testsuite.sh | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 testsuite/synth/issue2139/repro.vhdl create mode 100755 testsuite/synth/issue2139/testsuite.sh (limited to 'testsuite/synth/issue2139') diff --git a/testsuite/synth/issue2139/repro.vhdl b/testsuite/synth/issue2139/repro.vhdl new file mode 100644 index 000000000..e38f2562d --- /dev/null +++ b/testsuite/synth/issue2139/repro.vhdl @@ -0,0 +1,13 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity repro is + port (o : out unsigned (7 downto 0); + i : in std_logic_vector(7 downto 0)); +end repro; + +architecture behav of repro is +begin + o <= unsigned(i) + 1; +end behav; diff --git a/testsuite/synth/issue2139/testsuite.sh b/testsuite/synth/issue2139/testsuite.sh new file mode 100755 index 000000000..206a5b5a2 --- /dev/null +++ b/testsuite/synth/issue2139/testsuite.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS=--std=08 +synth_only repro + +GHDL_STD_FLAGS=--std=93 +analyze syn_repro.vhdl + +clean + +echo "Test successful" -- cgit v1.2.3