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

architecture behav of paren13
is
begin
  proc: process
    type string_acc is access string;
    variable hel : string_acc := new string'("hello");
    impure function a return string_acc is
    begin
      return hel;
    end a;
    function a return natural is
    begin
      return 5;
    end a;
    constant b : natural := 2;
  begin
    assert proc.a(b) = 'e';
    wait;
  end process;
end behav;