aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/case_non_constant.elna
blob: 03456530913573fe631e9804ef8a614f638a9eec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
return 0u8

end.