aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna')
-rw-r--r--testsuite/gna/bug0114/hello.vhdl8
-rw-r--r--testsuite/gna/bug0114/pkg.vhdl10
-rwxr-xr-xtestsuite/gna/bug0114/testsuite.sh11
3 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/gna/bug0114/hello.vhdl b/testsuite/gna/bug0114/hello.vhdl
new file mode 100644
index 000000000..d1a516229
--- /dev/null
+++ b/testsuite/gna/bug0114/hello.vhdl
@@ -0,0 +1,8 @@
+entity hello is
+end hello;
+
+use work.pkg.all;
+architecture behav of hello is
+begin
+ say_hello;
+end behav;
diff --git a/testsuite/gna/bug0114/pkg.vhdl b/testsuite/gna/bug0114/pkg.vhdl
new file mode 100644
index 000000000..8bdd20c9e
--- /dev/null
+++ b/testsuite/gna/bug0114/pkg.vhdl
@@ -0,0 +1,10 @@
+package pkg is
+ procedure say_hello;
+end pkg;
+
+package body pkg is
+ procedure say_hello is
+ begin
+ report "Hello";
+ end say_hello;
+end pkg;
diff --git a/testsuite/gna/bug0114/testsuite.sh b/testsuite/gna/bug0114/testsuite.sh
new file mode 100755
index 000000000..9f279e742
--- /dev/null
+++ b/testsuite/gna/bug0114/testsuite.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+$GHDL -i hello.vhdl pkg.vhdl
+sleep 1
+$GHDL -r --expect-failure hello
+
+clean
+
+echo "Test successful"