aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue984/generic_check.vhd
blob: cba427e71369e1f983532a721106fc9b00f36ba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use work.types_pkg.all;
-- Workaround:
--use work.const_pkg.all;

entity generic_check is
    generic (
        i : generic_type
    );
end entity;

architecture a of generic_check is
begin
    process
    begin
        assert i(0) = 5 report "Should be 5, is " & integer'image(i(0))
           severity failure;
        wait;
    end process;
end architecture;