aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/case_else.elna
blob: 68330dab108bc8cd798af97da3cde5ce11c03d1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var
  x: Int := 5
  matched: Bool := false

program()
begin
  case x of
    1: assert(false)
  | 2: assert(false)
  | 3: assert(false)
  else
    matched := true
  end;
  assert(matched)
return 0u8

end.