From 2c66a8bd567a50f4eb2e4bb3d35e9e3dd1e10ff5 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 1 Apr 2020 08:20:01 +0200 Subject: testsuite/synth: add a test for #1179 --- testsuite/synth/issue1179/bug.vhdl | 18 ++++++++++++++++++ testsuite/synth/issue1179/testsuite.sh | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 testsuite/synth/issue1179/bug.vhdl create mode 100755 testsuite/synth/issue1179/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/synth/issue1179/bug.vhdl b/testsuite/synth/issue1179/bug.vhdl new file mode 100644 index 000000000..a4271b91f --- /dev/null +++ b/testsuite/synth/issue1179/bug.vhdl @@ -0,0 +1,18 @@ +library IEEE; +use IEEE.std_logic_1164.all; +use IEEE.numeric_std.all; + +entity bug is + port( + dummy : out positive + ); +end bug; + +architecture behav of bug is + constant A : positive := 4; + constant B : positive := 1100; + constant C : positive := to_integer(A * to_unsigned(B, 11)); +begin + dummy <= c; + +end architecture; diff --git a/testsuite/synth/issue1179/testsuite.sh b/testsuite/synth/issue1179/testsuite.sh new file mode 100755 index 000000000..121ca9a6a --- /dev/null +++ b/testsuite/synth/issue1179/testsuite.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +. ../../testenv.sh + +synth_analyze bug +clean + +echo "Test successful" -- cgit v1.2.3