forked from rurban/perl-compiler
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes GH rurban#220 move global state to save_context This has nothing to do in modules. But the cophh/B::RHE chain is not yet stored efficiently. Fixes t/testc.sh -q -k -O0 130 180 220 250 302 but broke 240 242 use open #31 not yet, i.e. $^H{open<} (cherry picked from commit 4ab03cc) Signed-off-by: Nicolas Rochelemagne <rochelemagne@cpanel.net>
- Loading branch information
Showing
6 changed files
with
97 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#! /usr/bin/env perl | ||
# GH #220, COP->hints_hash | ||
use strict; | ||
|
||
BEGIN { | ||
unshift @INC, 't'; | ||
require "test.pl"; | ||
} | ||
use Test::More tests => 1; | ||
my $script = <<'EOF'; | ||
BEGIN { $^H{dooot} = 1 } | ||
sub hint_fetch { | ||
my $key = shift; | ||
my @results = caller(0); | ||
$results[10]->{$key}; | ||
} | ||
print qq{ok\n} if hint_fetch("dooot"); | ||
EOF | ||
|
||
use B::C (); | ||
my $todo = ( $B::C::VERSION ge '1.52_22' ) ? "" : "TODO "; | ||
|
||
ctestok( | ||
1, 'C', 'ccode200i', $script, | ||
$todo . '#200 hints hash saved' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters