This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document string- and number-specific bitops in perlop
[perl5.git] / dist / Math-BigInt / t / upgrade2.t
CommitLineData
45029d2d
FC
1#!/usr/bin/perl -w
2
3# Test 2 levels of upgrade classes. This used to cause a segv.
4
5use Test::More tests => 1;
6
7use Math::BigInt upgrade => 'Math::BigFloat';
8use Math::BigFloat upgrade => 'Math::BigMouse';
9
10no warnings 'once';
11@Math::BigMouse::ISA = 'Math::BigFloat';
12
13() = sqrt Math::BigInt->new(2);
14pass('sqrt on a big int does not segv if there are 2 upgrade levels');