aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue2104/e2d.vhdl
blob: 0b541fc479b3a849c7d239592b972dae5fc8e9f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
entity e2d is
  generic (gen1 : natural := 5);
end;

architecture a of e2d is
    function outer(arg : integer) return integer is
        function inner1(arg : integer) return integer is
        begin
            return arg + 1;
        end;
        function inner2(arg : integer) return integer is
        begin
            return inner1(arg + 2);
        end;
    begin
        return gen1 + inner2(arg + 3);
    end;
begin
end;