diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-12-13 17:22:57 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-12-13 17:36:53 -0800 |
commit | a93cf6e2886e05df1703c1af91c0d47ab3a725ab (patch) | |
tree | 8727a33ed8482d9b06547e4cc4befcd8ae7d7996 /lib | |
parent | 84ed39923aa892dfb4b1098447ae6f1366c3cfd2 (diff) | |
download | perl-a93cf6e2886e05df1703c1af91c0d47ab3a725ab.tar.gz |
Deparse.t: Adjust a test broken 2 commits ago
Diffstat (limited to 'lib')
-rw-r--r-- | lib/B/Deparse.t | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/lib/B/Deparse.t b/lib/B/Deparse.t index 19d541af79..24213d1c8b 100644 --- a/lib/B/Deparse.t +++ b/lib/B/Deparse.t @@ -13,7 +13,7 @@ BEGIN { use warnings; use strict; -my $tests = 41; # not counting those in the __DATA__ section +my $tests = 42; # not counting those in the __DATA__ section use B::Deparse; my $deparse = B::Deparse->new(); @@ -341,6 +341,25 @@ like runperl(stderr => 1, switches => [ '-MO=-qq,Deparse', $path ], qr/&is\(/, 'sub calls compiled before importation of prototype subs'; +# [perl #121050] Prototypes with whitespace +is runperl(stderr => 1, switches => [ '-MO=-qq,Deparse', $path ], + prog => <<'EOCODO'), +sub _121050(\$ \$) { } +_121050($a,$b); +sub _121050empty( ) {} +() = _121050empty() + 1; +EOCODO + <<'EOCODP', '[perl #121050] prototypes with whitespace'; +sub _121050 (\$ \$) { + +} +_121050 $a, $b; +sub _121050empty ( ) { + +} +() = _121050empty + 1; +EOCODP + # CORE::no $a = readpipe qq`$^X $path "-MO=Deparse" -Xe ` .qq`"use feature q|:all|; my sub no; CORE::no less" 2>&1`; @@ -1864,15 +1883,6 @@ do { $; }; #### -# [perl #121050] Prototypes with whitespace -sub _121050(\$ \$) { } -_121050($a,$b); -sub _121050empty( ) {} -() = _121050empty() + 1; ->>>> -_121050 $a, $b; -() = _121050empty + 1; -#### # Ampersand calls and scalar context # OPTIONS -P package prototest; |