summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug017/ret1.vhdl
blob: 2ff937d4916bd6e8509516d6c7c9ca5cb5a6dee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
entity ret1 is
end;

architecture behav of ret1 is
  procedure p (n : natural) is
    variable i : natural := 0;
  begin
    loop
      report "hello 1";
      wait for 1 ns;
      if i = n then
        return;
      end if;
      i := i + 1;
    end loop;
  end p;
begin
  process
  begin
    p (5);
    report "SUCCESS: hello3";
    wait;
  end process;
 
end behav;