diff options
Diffstat (limited to 't/uni/parser.t')
-rw-r--r-- | t/uni/parser.t | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/t/uni/parser.t b/t/uni/parser.t index a3e3477d9d..6530b66cc3 100644 --- a/t/uni/parser.t +++ b/t/uni/parser.t @@ -7,7 +7,7 @@ BEGIN { require './test.pl'; } -plan (tests => 41); +plan (tests => 42); use utf8; use open qw( :utf8 :std ); @@ -116,4 +116,10 @@ is ${"main::\345\225\217"}, undef, "..and using the encoded form doesn't"; eval "$_ Foo $x = 1;"; like $@, qr/No such class Foo/u, "'No such class' warning for $_ is UTF-8 clean"; } -}
\ No newline at end of file +} + +{ + local $@; + 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"; +} |