File: 23-bad-notaint.t

package info (click to toggle)
libindirect-perl 0.39-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 440 kB
  • sloc: perl: 3,166; ansic: 1,359; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!perl

use strict;
use warnings;

use Test::More tests => 1;

BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }

{
 my @warns;
 {
  no indirect hook => sub { push @warns, \@_ };
  eval { meh { } };
 }
 is_deeply \@warns, [ [ '{', 'meh', $0, __LINE__-2 ] ], 'covering OP_CONST';
}