p4raw-id: //depot/perl@27057
$| = 1;
use warnings;
use strict;
-use Test::More tests => 53;
+use Test::More tests => 55;
BEGIN { use_ok( 'B' ); }
'$. has no more magic' );
}
+ok(B::svref_2object(qr/foo/)->MAGIC->precomp() eq 'foo', 'Get string from qr//');
+like(B::svref_2object(qr/foo/)->MAGIC->REGEX(), qr/\d+/, "REGEX() returns numeric value");
my $iv = 1;
my $iv_ref = B::svref_2object(\$iv);
is(ref $iv_ref, "B::IV", "Test B:IV return from svref_2object");