]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/80-regressions.t
Only enable the pragma during compile time
[perl/modules/indirect.git] / t / 80-regressions.t
diff --git a/t/80-regressions.t b/t/80-regressions.t
new file mode 100644 (file)
index 0000000..7d05c82
--- /dev/null
@@ -0,0 +1,18 @@
+#!perl
+
+use strict;
+use warnings;
+
+use Test::More tests => 1;
+
+sub run_perl {
+ my $code = shift;
+
+ local %ENV;
+ system { $^X } $^X, '-T', map("-I$_", @INC), '-e', $code;
+}
+
+{
+ my $status = run_perl 'no indirect; print "a\x{100}b" =~ /\A[\x00-\x7f]*\z/;';
+ is $status, 0, 'RT #47866';
+}