aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/synth/issue1936/repro.vhdl22
-rwxr-xr-xtestsuite/synth/issue1936/testsuite.sh7
2 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/synth/issue1936/repro.vhdl b/testsuite/synth/issue1936/repro.vhdl
new file mode 100644
index 000000000..0e858848a
--- /dev/null
+++ b/testsuite/synth/issue1936/repro.vhdl
@@ -0,0 +1,22 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+library std;
+use std.textio.all;
+
+entity test is
+ port (
+ clock : in std_logic
+ );
+end test;
+
+architecture test_arc of test is
+ impure function minified_func return boolean is
+ file fref, fref2: text;
+ begin
+ return false;
+ end function;
+begin
+
+end test_arc;
+
diff --git a/testsuite/synth/issue1936/testsuite.sh b/testsuite/synth/issue1936/testsuite.sh
new file mode 100755
index 000000000..e9dc72228
--- /dev/null
+++ b/testsuite/synth/issue1936/testsuite.sh
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+synth_only repro
+
+echo "Test successful"