summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug21513/pb.vhdl
blob: 5b63cf1ab2b907245a8f163ea85be8709b38d80b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
entity pb is
end pb;

architecture behav of pb is
  type t is record
    v : integer;
  end record;

  function "-" (a, b : t) return t is
    variable v : integer;
  begin
    "-".v := a.v;
    v := "-".b.v;
    return b;
  end "-";
begin
end;