aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/named_block.elna
blob: 0ba7eff10cf611b610269a3079da4e53e9870bf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
program()
var
  counter: Int := 0

begin
  block outer
    while true do
      defer
        counter := counter + 10
      end;
      counter := counter + 1;
      break outer
    end
  end;
  assert(counter = 11)
end.