diff options
Diffstat (limited to 'testsuite/gna')
-rw-r--r-- | testsuite/gna/issue791/memory_pkg.vhdl | 11 | ||||
-rw-r--r-- | testsuite/gna/issue791/test.vhdl | 17 | ||||
-rwxr-xr-x | testsuite/gna/issue791/testsuite.sh | 12 |
3 files changed, 40 insertions, 0 deletions
diff --git a/testsuite/gna/issue791/memory_pkg.vhdl b/testsuite/gna/issue791/memory_pkg.vhdl new file mode 100644 index 000000000..541b337bc --- /dev/null +++ b/testsuite/gna/issue791/memory_pkg.vhdl @@ -0,0 +1,11 @@ +package generic_pkg is + generic ( + procedure generic_procedure + ); +end package; +package body generic_pkg is + procedure internal_procedure is + begin + generic_procedure; + end; +end package body; diff --git a/testsuite/gna/issue791/test.vhdl b/testsuite/gna/issue791/test.vhdl new file mode 100644 index 000000000..77adb1e36 --- /dev/null +++ b/testsuite/gna/issue791/test.vhdl @@ -0,0 +1,17 @@ +entity test is +end test; + +architecture behav of test is + procedure proc is + begin + null; + end proc; + + package pkg is new work.generic_pkg + generic map (proc); +begin + process + begin + wait; + end process; +end behav; diff --git a/testsuite/gna/issue791/testsuite.sh b/testsuite/gna/issue791/testsuite.sh new file mode 100755 index 000000000..4084ad3e5 --- /dev/null +++ b/testsuite/gna/issue791/testsuite.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze memory_pkg.vhdl +analyze test.vhdl +elab_simulate test + +clean + +echo "Test successful" |