summaryrefslogtreecommitdiff
path: root/Test/test0/BadLabels1.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <qadeer@microsoft.com>2011-04-21 23:05:44 -0700
committerGravatar qadeer <qadeer@microsoft.com>2011-04-21 23:05:44 -0700
commit5c44090283423c15016f7f0d2df85392ab85f67b (patch)
tree54c462f0dc394a45b3ad03152e2d1cd107fcfa90 /Test/test0/BadLabels1.bpl
parent18720c60027f4c641c44e19f8f95dce51ce0e5ec (diff)
Changed label checking for goto targets in StmtList so that they can be any label in the current implementation.
Diffstat (limited to 'Test/test0/BadLabels1.bpl')
-rw-r--r--Test/test0/BadLabels1.bpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/Test/test0/BadLabels1.bpl b/Test/test0/BadLabels1.bpl
index b4bb6948..28fb47b8 100644
--- a/Test/test0/BadLabels1.bpl
+++ b/Test/test0/BadLabels1.bpl
@@ -7,7 +7,7 @@ procedure P0()
procedure P1(y: int)
{
- goto X; // error: label out of reach
+ goto X;
while (y < 100)
{
X:
@@ -21,13 +21,13 @@ procedure P1(y: int)
B:
} else {
C:
- goto K; // error: label out of reach
+ goto K;
}
while (y < 1000)
{
K:
- goto A; // error: label out of reach
+ goto A;
if (y % 2 == 0) {
goto L;
M:
@@ -35,10 +35,10 @@ procedure P1(y: int)
goto K, L;
L:
if (*) {
- goto M; // error: label out of reach
+ goto M;
}
}
- goto B; // error: label out of reach
+ goto B;
}