aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1475/e2.vhdl
blob: 88b83c94d503201e4df77fdbd0335d6d9ad88b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
entity e2 is
end;

architecture behav of e2 is
  type my_type is (lit1, lit2);

  function "+" (l : my_type; r : natural) return my_type is
  begin
    return lit2;
  end "+";

  signal s : my_type := lit1;
begin
  assert s + (-1) = lit2;
end behav;