aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue209/main2.vhdl
blob: 1d8e9f321921f477a03fa69e74cec0da8c201f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
library work;
    use work.all;

package ShiftReg is
    type integer_list_t is array (natural range <>) of integer; -- notice this line
    procedure main(new_sample: integer);
end package;

package body ShiftReg is

    procedure main(new_sample: integer) is
        variable dummy: integer_list_t(0 to 3); -- notice this line
    begin
        dummy := new_sample & dummy(0 to dummy'high-1); --no error
    end procedure;

end package body;