aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/aggregate_argument.elna
blob: b92e4608a85d6a2d702b526586e6188508e5fd7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
type
  R = record
    a: Int;
    b: Int
  end

proc f(r: R): Int
var
  result: Int
begin
  if r.a = 1 & r.b = 2 then
    result := 0
  else
    result := 1
  end;
  return result
end

return f(R(1, 2))

end.