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

var
  r: R
  x: R

program()
begin
  x := r;
  case x of
    r: (* @Error Case label must be a constant expression *)
  end
end.