diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-12 16:18:30 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-12 16:18:30 +0000 |
commit | 4210e623646c7033a4e910db43c1b76aafbe52c6 (patch) | |
tree | aaaf860a647b60480300c3feb0b7def90bfa9f3a /t | |
parent | b6bbf3fa3e9accb3710d8c05e0e3b107baaa1fee (diff) | |
download | perl-4210e623646c7033a4e910db43c1b76aafbe52c6.tar.gz |
Test that we can do embedded 0 bytes in hints.
p4raw-id: //depot/perl@27777
Diffstat (limited to 't')
-rw-r--r-- | t/op/caller.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/op/caller.t b/t/op/caller.t index 082f595380..c32b044507 100644 --- a/t/op/caller.t +++ b/t/op/caller.t @@ -5,7 +5,7 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; require './test.pl'; - plan( tests => 64 ); + plan( tests => 65 ); } my @c; @@ -225,3 +225,10 @@ print "# which now works inside evals\n"; eval "is(get_dooot(), 54); 1" or die $@; EOE } + +{ + BEGIN { + $^H{dooot} = "FIP\0FOP\0FIDDIT\0FAP"; + } + is(get_dooot(), "FIP\0FOP\0FIDDIT\0FAP", "Can do embedded 0 bytes"); +} |