summaryrefslogtreecommitdiff
path: root/testsuite/gna/ticket83/bug.vhdl
blob: 616b4193f78adc34c72e562814012512928475c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
entity ent is
end entity;

architecture a of ent is
begin
  main : process
    function foo return string is
      variable s : string(1 to 1); -- Causes exception 
    begin
      return (0 => '0');
    end function;
  begin
    wait;
  end process;
end architecture;