This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
No need to skip t/op/dump.t on darwin
[perl5.git] / t / op / fresh_perl_utf8.t
CommitLineData
5ede95a0
BF
1#!./perl
2
3#This file is intentionally written in UTF-8
4
5BEGIN {
6 chdir 't' if -d 't';
5ede95a0 7 require './test.pl';
624c42e2 8 set_up_inc('../lib');
5ede95a0
BF
9}
10
88e0b65b
FC
11plan 1;
12
5ede95a0
BF
13use utf8;
14use strict;
15use open qw( :utf8 :std );
16
17{
18 local $@;
19 eval 'sub testme { my $ᨕ = "test"; { local $ᨕ = "new test"; print $ᨕ } }';
20 like( $@, qr/Can't localize lexical variable \$ᨕ at /u, q!"Can't localize lexical" error is in UTF-8! );
21}