aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug048/leftof2.vhdl
blob: 2d4b5e56b3b104ab0430604e91b838b01857dd60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
entity leftofrightof is
end entity;

architecture subclass_variable of leftofrightof is

begin
    process
        variable i: integer := 1;
    begin
        report "variable i = " & integer'image(i);
        report "integer'leftof(i) = " & integer'image(integer'leftof(i));
        wait;
    end process;
    process
        variable j: integer := 1;
    begin
        report "variable j = " & integer'image(j);
        report "integer'rightof(j) = " & integer'image(integer'rightof(j));
        wait;
    end process;
end architecture;