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

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

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

end.