aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/return_aggregate.elna
blob: 54d833d4368a6566eb6a1b99c387cd822904fe4e (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
type
  R = record
    a: Int;
    b: Int
  end

proc g() -> R
  return R(1, 2)
end

proc f() -> Int
var
  result: Int
begin
  if g() = R(1, 2) then
    result := 0
  else
    result := 1
  end;
  return result
end

return f()

end.