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

var
  r: R := { R; a: 1, b: 2 }

begin
  case r of
    { R; a: 0, b: 0 }: assert(false) |
    { R; a: 1, b: 2 }: assert(true)
  else
    assert(false)
  end
end.