diff options
Diffstat (limited to 'testsuite/gna/issue440/ent.vhdl')
-rw-r--r-- | testsuite/gna/issue440/ent.vhdl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue440/ent.vhdl b/testsuite/gna/issue440/ent.vhdl new file mode 100644 index 000000000..0333fade5 --- /dev/null +++ b/testsuite/gna/issue440/ent.vhdl @@ -0,0 +1,19 @@ +package gpkg is + generic (const : natural); +end package; + +package ipkg is new work.gpkg generic map (const => 1); + +entity ent is +end entity; + +architecture a of ent is +begin + main : process + begin + -- Case 1 + assert work.ipkg.const = 1; -- Should this result in a 'no declaration of const' error? + -- case 2 +-- assert << constant @work.ipkg.const : natural>> = 1; -- Should this be visible? + end process; +end architecture; |