summaryrefslogtreecommitdiff
path: root/Test/test0/BadLabels0.bpl
blob: 89cf7a36f80a7970c37743a374b95f914215d749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
procedure Dup(y: int)
{
  X:
  X:  // error: duplicate label
  while (y < 100)
  {
    Y:
  }
  while (y < 1000)
  {
    Y:  // error: duplicate label (labels must be unique in entire procedure body)
  }
}