diff options
Diffstat (limited to 'testsuite/gna/bug056/tb.vhdl')
-rw-r--r-- | testsuite/gna/bug056/tb.vhdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/bug056/tb.vhdl b/testsuite/gna/bug056/tb.vhdl new file mode 100644 index 000000000..cda7ef62f --- /dev/null +++ b/testsuite/gna/bug056/tb.vhdl @@ -0,0 +1,21 @@ +package pkg is + generic (c : natural); + + function f return natural; +end pkg; + +package body pkg is + function f return natural is + begin + return c; + end f; +end pkg; + +entity tb is +end tb; + +architecture behav of tb is + package p is new work.pkg generic map (c => 3); +begin + assert p.f = 3; +end behav; |