Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 91856d34881f72dd72343cf9a5462396 > files > 7

perl-B-Hooks-EndOfScope-0.08-3.fc13.noarch.rpm

use strict;
use warnings;
use Test::More tests => 2;

use B::Hooks::EndOfScope;

eval q[
    sub foo {
        BEGIN {
            on_scope_end { die 'bar' };
        }
    }
];

like($@, qr/^bar/);
pass('no segfault');