This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Explicitly disable unicode for non-unicode tests in t/op/warn.t
[perl5.git] / t / re / reg_unsafe.t
CommitLineData
a229a030
YO
1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6
7}
8print "1..1\n";
9
67a2b8c6 10# there is an equivelent test in t/re/pat.t which does NOT fail
a229a030
YO
11# its not clear why it doesnt fail, so this todo gets its own test
12# file until we can work it out.
13
14my $x;
15($x='abc')=~/(abc)/g;
16$x='123';
17
18print "not " if $1 ne 'abc';
19print "ok 1 # TODO safe match vars make /g slow\n";