From: Jim Cromie Date: Sat, 3 Sep 2005 22:38:13 +0000 (-0600) Subject: regression test for 25352 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c394315b3f8471f6207f6e24e1758be717bbd14;p=p5sagit%2Fp5-mst-13.2.git regression test for 25352 Message-ID: <431A7A35.6050705@gmail.com> p4raw-id: //depot/perl@25354 --- diff --git a/ext/B/t/optree_specials.t b/ext/B/t/optree_specials.t index ba91dda..963ec88 100644 --- a/ext/B/t/optree_specials.t +++ b/ext/B/t/optree_specials.t @@ -27,7 +27,7 @@ BEGIN { use OptreeCheck; # ALSO DOES @ARGV HANDLING !!!!!! use Config; -plan tests => 6; +plan tests => 7; require_ok("B::Concise"); @@ -237,3 +237,40 @@ EOT_EOT # q <1> postinc[t2] sK/1 # r <1> leavesub[1 ref] K/REFC,1 EONT_EONT + + +# perl "-I../lib" -MO=Concise,BEGIN,CHECK,INIT,END,-exec -e '$a=$b && print q/foo/' + + + +checkOptree ( name => 'regression test for patch 25352', + bcopts => [qw/ BEGIN END INIT CHECK -exec /], + prog => 'print q/foo/', + @warnings_todo, + expect => <<'EOT_EOT', expect_nt => <<'EONT_EONT'); +# BEGIN 1: +# 1 <;> nextstate(B::Concise -234 Concise.pm:359) v/2 +# 2 <$> const[PV "warnings.pm"] s/BARE +# 3 <1> require sK/1 +# 4 <;> nextstate(B::Concise -234 Concise.pm:359) v/2 +# 5 <;> nextstate(B::Concise -234 Concise.pm:359) /2 +# 6 <0> pushmark s +# 7 <$> const[PV "warnings"] sM +# 8 <$> const[PV "qw"] sM +# 9 <$> method_named[PV "unimport"] +# a <1> entersub[t1] KS*/TARG,2 +# b <1> leavesub[1 ref] K/REFC,1 +EOT_EOT +# BEGIN 1: +# 1 <;> nextstate(B::Concise -234 Concise.pm:359) v/2 +# 2 <$> const(PV "warnings.pm") s/BARE +# 3 <1> require sK/1 +# 4 <;> nextstate(B::Concise -234 Concise.pm:359) v/2 +# 5 <;> nextstate(B::Concise -234 Concise.pm:359) /2 +# 6 <0> pushmark s +# 7 <$> const(PV "warnings") sM +# 8 <$> const(PV "qw") sM +# 9 <$> method_named(PV "unimport") +# a <1> entersub[t1] KS*/TARG,2 +# b <1> leavesub[1 ref] K/REFC,1 +EONT_EONT