aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtestsuite/gna/issue634/testsuite.sh10
-rw-r--r--testsuite/gna/issue634/top.vhdl15
2 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/gna/issue634/testsuite.sh b/testsuite/gna/issue634/testsuite.sh
new file mode 100755
index 000000000..e0b0e2fec
--- /dev/null
+++ b/testsuite/gna/issue634/testsuite.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+analyze top.vhdl
+elab_simulate_failure top_ent
+
+clean
+
+echo "Test successful"
diff --git a/testsuite/gna/issue634/top.vhdl b/testsuite/gna/issue634/top.vhdl
new file mode 100644
index 000000000..0dd7a47a2
--- /dev/null
+++ b/testsuite/gna/issue634/top.vhdl
@@ -0,0 +1,15 @@
+use std.textio.all;
+
+entity top_ent is
+end entity;
+
+architecture default of top_ent is
+ file fh : text;
+begin
+ process
+ begin
+ if endfile(fh) then
+ null;
+ end if;
+ end process;
+end architecture;