diff options
Diffstat (limited to 'testsuite/gna/issue705/bug2.vhdl')
-rw-r--r-- | testsuite/gna/issue705/bug2.vhdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue705/bug2.vhdl b/testsuite/gna/issue705/bug2.vhdl new file mode 100644 index 000000000..2e1c3f306 --- /dev/null +++ b/testsuite/gna/issue705/bug2.vhdl @@ -0,0 +1,21 @@ +package pkg is + constant const : natural := 0; +end package; + +package pkg2 is + constant const : natural := 2; +end package; + +entity tb_ent is +end entity; + +architecture a of tb_ent is + use work.pkg.const; +begin + main : process + use work.pkg2.const; + begin + report integer'image(const); -- Should be an error as const is ambiguous + end process; +end architecture; + |