aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/issues/issue159/repro.vhdl16
-rw-r--r--testsuite/issues/issue159/repro2.vhdl16
-rwxr-xr-xtestsuite/issues/issue159/testsuite.sh11
3 files changed, 43 insertions, 0 deletions
diff --git a/testsuite/issues/issue159/repro.vhdl b/testsuite/issues/issue159/repro.vhdl
new file mode 100644
index 0000000..bc172a4
--- /dev/null
+++ b/testsuite/issues/issue159/repro.vhdl
@@ -0,0 +1,16 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity repro is
+ port (i : std_logic;
+ o : out std_logic);
+end;
+
+architecture behav of repro is
+begin
+ process(i)
+ variable v : std_logic;
+ begin
+ o <= i or v;
+ end process;
+end behav;
diff --git a/testsuite/issues/issue159/repro2.vhdl b/testsuite/issues/issue159/repro2.vhdl
new file mode 100644
index 0000000..b230555
--- /dev/null
+++ b/testsuite/issues/issue159/repro2.vhdl
@@ -0,0 +1,16 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity repro2 is
+ port (i : std_logic;
+ o : out std_logic);
+end;
+
+architecture behav of repro2 is
+ signal v : std_logic;
+begin
+ process(i)
+ begin
+ o <= i or v;
+ end process;
+end behav;
diff --git a/testsuite/issues/issue159/testsuite.sh b/testsuite/issues/issue159/testsuite.sh
new file mode 100755
index 0000000..e0a830f
--- /dev/null
+++ b/testsuite/issues/issue159/testsuite.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+topdir=../..
+. $topdir/testenv.sh
+
+for f in repro repro2; do
+ synth_import "${f}.vhdl -e ${f}"
+done
+
+clean
+echo OK