From 7b066064cc558b070a46c4d50aa54544101f2c2b Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 12 Apr 2020 16:43:47 +0200 Subject: testsuite/gna: add a test for previous commit. --- testsuite/gna/bug0114/hello.vhdl | 8 ++++++++ testsuite/gna/bug0114/pkg.vhdl | 10 ++++++++++ testsuite/gna/bug0114/testsuite.sh | 11 +++++++++++ 3 files changed, 29 insertions(+) create mode 100644 testsuite/gna/bug0114/hello.vhdl create mode 100644 testsuite/gna/bug0114/pkg.vhdl create mode 100755 testsuite/gna/bug0114/testsuite.sh (limited to 'testsuite/gna') 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" -- cgit v1.2.3