summaryrefslogtreecommitdiffstats
path: root/t/warnings-taint.t
blob: 0fc9758c736fbd9fc19c3d410edca9d9ec605c19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env perl -T
use strict;
use warnings;
use Test::More;

use Package::Stash;

my $warnings;
BEGIN {
    $warnings = '';
    $SIG{__WARN__} = sub { $warnings .= $_[0] };
}

BEGIN {
    my $stash = Package::Stash->new('Foo');
    $stash->get_or_add_symbol('$bar');
}

is($warnings, '');

done_testing;