diff options
author | Ben Morrow <ben@morrow.me.uk> | 2007-10-15 23:56:16 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-10-17 08:08:04 +0000 |
commit | a5a709ec819bfe84b1af6f781d5d87ef68e00c3a (patch) | |
tree | 0a699c520f7106d3f4e87dd055e5c951806ea347 /t | |
parent | c259ebfbd49165b24578c71d9ad032092dbe5771 (diff) | |
download | perl-a5a709ec819bfe84b1af6f781d5d87ef68e00c3a.tar.gz |
ex-PVBM and mro interact badly
Message-ID: <20071015215616.GA43800@osiris.mauzo.dyndns.org>
p4raw-id: //depot/perl@32119
Diffstat (limited to 't')
-rw-r--r-- | t/op/hash.t | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/t/op/hash.t b/t/op/hash.t index 6e1b4daa4b..9bde518732 100644 --- a/t/op/hash.t +++ b/t/op/hash.t @@ -8,7 +8,7 @@ BEGIN { use strict; -plan tests => 5; +plan tests => 6; my %h; @@ -109,3 +109,12 @@ sub hash { $u += $u << 15; $u %= MASK_U32; $u; } + +# This will crash perl if it fails + +use constant PVBM => 'foo'; + +my $dummy = index 'foo', PVBM; +eval { my %h = (a => PVBM); 1 }; + +ok (!$@, 'fbm scalar can be inserted into a hash'); |