This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Implement SvPVutf8_nomg and SvPVbyte_nomg
[perl5.git] / ext / XS-APItest / t / sort.t
CommitLineData
2fc49ef1
FC
1#!perl -w
2
3use strict;
4use warnings;
c19fd8b4 5use Test::More tests => 2;
2fc49ef1
FC
6
7use XS::APItest;
8
9is join("", sort xs_cmp split//, '1415926535'), '1135559246',
10 'sort treats XS cmp routines as having implicit ($$)';
c19fd8b4
FC
11{
12 my $w;
13 local $SIG{__WARN__} = sub { $w .= shift };
14 () = sort xs_cmp_undef 1,2;
15 like $w, qr/^Use of uninitialized value in sort at /,
16 'warning about undef retval from cmp routine mentions sort';
17}