Skip to content

Commit b003602

Browse files
committed
Unicode labels are still valid
But can only be exercised if you don't have to jump into a construct to get to them.
1 parent 656f8d5 commit b003602

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

t/uni/labels.t

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use feature qw 'unicode_strings evalbytes';
1616

1717
use charnames qw( :full );
1818

19-
plan(10);
19+
plan(11);
2020

2121
LABEL: {
2222
pass("Sanity check, UTF-8 labels don't throw a syntax error.");
@@ -89,3 +89,11 @@ is $d, 0, "Latin-1 labels are reachable";
8989
qr/Use of goto to jump into a construct is no longer permitted/,
9090
"Got expected error message");
9191
}
92+
93+
{
94+
goto ここ;
95+
96+
ここ: {
97+
pass("UTF-8 labels are still valid, but you can no longer jump into a construct");
98+
}
99+
}

0 commit comments

Comments
 (0)