This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Suppress warning in XS-APItest’s sniscow.t
[perl5.git] / ext / XS-APItest / t / sviscow.t
CommitLineData
fa819c1c 1use strict;
fa819c1c
FC
2
3use Test::More tests => 1;
4
5use XS::APItest;
6use Hash::Util 'lock_value';
eb611d08 7use warnings; no warnings 'once', 'Hash::Util';
fa819c1c
FC
8
9my %h;
10$h{g} = *foo;
11lock_value %h, 'g';
12
13ok(!SvIsCOW($h{g}), 'SvIsCOW is honest when it comes to globs');