Start with a copy of B::H::EOS 0.09
[p5sagit/B-Hooks-EndOfScope-WithFallback.git] / t / exception.t
CommitLineData
58b07c77 1use strict;
2use warnings;
3use Test::More tests => 2;
4
5use B::Hooks::EndOfScope;
6
7eval q[
8 sub foo {
9 BEGIN {
10 on_scope_end { die 'bar' };
11 }
12 }
13];
14
15like($@, qr/^bar/);
16pass('no segfault');