summaryrefslogtreecommitdiff
path: root/t/uni/parser.t
diff options
context:
space:
mode:
Diffstat (limited to 't/uni/parser.t')
-rw-r--r--t/uni/parser.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/uni/parser.t b/t/uni/parser.t
index 6530b66cc3..e67871e944 100644
--- a/t/uni/parser.t
+++ b/t/uni/parser.t
@@ -7,7 +7,7 @@ BEGIN {
require './test.pl';
}
-plan (tests => 42);
+plan (tests => 44);
use utf8;
use open qw( :utf8 :std );
@@ -123,3 +123,12 @@ is ${"main::\345\225\217"}, undef, "..and using the encoded form doesn't";
eval "our \$main::\x{30cb};";
like $@, qr!No package name allowed for variable \$main::\x{30cb} in "our"!, "'No such package name allowed for variable' is UTF-8 clean";
}
+
+{
+ use feature 'state';
+ local $@;
+ for ( qw( my state ) ) {
+ eval "$_ \$::\x{30cb};";
+ like $@, qr!"$_" variable \$::\x{30cb} can't be in a package!, qq!'"$_" variable %s can't be in a package' is UTF-8 clean!;
+ }
+}