summaryrefslogtreecommitdiff
path: root/ext/B
diff options
context:
space:
mode:
authorRobin Houston <robin@cpan.org>2001-07-03 00:46:15 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-02 22:48:42 +0000
commit14a55f983d12fddd5eed5f0d91429d3f5b58961f (patch)
tree4d78081149fb26ee8f6843469b2dd2b9a00de441 /ext/B
parent75c72d732fc75126bb667afb0f3155ab15890fb3 (diff)
downloadperl-14a55f983d12fddd5eed5f0d91429d3f5b58961f.tar.gz
test just-posted patches
Message-Id: <E15HCUN-0000Rh-00.2001-07-02-23-48-19@mail18.svr.pol.co.uk> p4raw-id: //depot/perl@11111
Diffstat (limited to 'ext/B')
-rw-r--r--ext/B/Deparse.t28
1 files changed, 16 insertions, 12 deletions
diff --git a/ext/B/Deparse.t b/ext/B/Deparse.t
index 0979d7e2f9..20cef751a2 100644
--- a/ext/B/Deparse.t
+++ b/ext/B/Deparse.t
@@ -15,7 +15,7 @@ use warnings;
use strict;
use Config;
-print "1..14\n";
+print "1..15\n";
use B::Deparse;
my $deparse = B::Deparse->new() or print "not ";
@@ -105,7 +105,7 @@ $b = <<'EOF';
LINE: while (defined($_ = <ARGV>)) {
chomp $_;
- @F = split(" ", $_, 0);
+ our(@F) = split(" ", $_, 0);
'???';
}
@@ -114,27 +114,27 @@ print "# [$a]\n\# vs expected\n# [$b]\nnot " if $a ne $b;
print "ok " . $i++ . "\n";
__DATA__
-# 1
+# 2
1;
####
-# 2
+# 3
{
no warnings;
'???';
2;
}
####
-# 3
+# 4
my $test;
++$test and $test /= 2;
>>>>
my $test;
$test /= 2 if ++$test;
####
-# 4
+# 5
-((1, 2) x 2);
####
-# 5
+# 6
{
my $test = sub : lvalue {
my $x;
@@ -142,7 +142,7 @@ $test /= 2 if ++$test;
;
}
####
-# 6
+# 7
{
my $test = sub : method {
my $x;
@@ -150,7 +150,7 @@ $test /= 2 if ++$test;
;
}
####
-# 7
+# 8
{
my $test = sub : locked method {
my $x;
@@ -158,7 +158,7 @@ $test /= 2 if ++$test;
;
}
####
-# 8
+# 9
{
234;
}
@@ -166,10 +166,14 @@ continue {
123;
}
####
-# 9
+# 10
my $x;
print $main::x;
####
-# 10
+# 11
my @x;
print $main::x[1];
+####
+# 12
+my %x;
+$x{warn()};