summaryrefslogtreecommitdiff
path: root/ext/B/t/concise.t
blob: ad29c203294ea4ecc3cfdebe05a2af972513696f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!./perl

BEGIN {
    chdir 't';
    @INC = '../lib';
    require './test.pl';
}

plan tests => 3;

require_ok("B::Concise");

$out = runperl(switches => ["-MO=Concise"], prog => '$a', stderr => 1);

# If either of the next two tests fail, it probably means you need to
# fix the section labeled 'fragile kludge' in Concise.pm

$op_base = ($out =~ /^(\d+)\s*<0>\s*enter/m);

is($op_base, 1, "Smallest OP sequence number", $help);

$cop_base = ($out =~ /nextstate\(main (\d+) /);

is($cop_base, 1, "Smallest COP sequence number", $help);