swig/Examples/test-suite/perl5/packageoption_runme.pl
Olly Betts 748a9a5452 [perl] Require at least Perl 5.8.0
As discussed and agreed in #1629, it's become hard to test with Perl
5.6 or earlier, such old versions are no longer in active use, and
4.1.0 is an appropriate time to make such a change.

I've dropped the compatibility code that was obvious to me, but there's
probably more that can be cleaned up now.
2022-01-19 10:07:30 +13:00

15 lines
275 B
Perl

#!/usr/bin/perl -w
use strict;
use Test::More tests => 4;
BEGIN { use_ok('packageoption_a'); }
BEGIN { use_ok('packageoption_b'); }
my $a = CommonPackage::A->new();
isa_ok($a, 'CommonPackage::A');
my $b = CommonPackage::B->new();
isa_ok($b, 'CommonPackage::B');