summary refs log tree commit diff stats
path: root/tests/reject/tblock1.nim
blob: 5c41aaf8214c161b0b211b7defdacb50084801ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  file: "tblock1.nim"
  line: 14
  errormsg: "undeclared identifier: \'ha\'"
"""
# check for forward label and
# for failure when label is not declared

proc main =
  block endLess:
    write(stdout, "Muaahh!\N")
    break endLess

  break ha #ERROR

main()