aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/record_base_assignment.elna
blob: 7ad17e065989d11f145a1596ef0ef6e6b62e15c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
program()
type
  B = record
    x: Word
  end
  R = record(B)
    y: Word
  end

proc f()
var
  r: R
begin
  r.x := 3u;
  r.y := 2u;

  assert(r.x = 3u & r.y = 2u)
return

begin
  f()
end.