diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-23 18:58:23 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-23 18:58:23 +0000 |
commit | 05423cc9de6f6e1f80405901832793163e71bb76 (patch) | |
tree | e3197e7ed9c9133da6f816a8b536613cb60af7bb /t/op/die.t | |
parent | fe5e78edd9ab337ef125ca9ff835e10989fe0004 (diff) | |
download | perl-05423cc9de6f6e1f80405901832793163e71bb76.tar.gz |
[win32] merge changes#1016,1018 from maintbranch (1017 is n/a)
p4raw-link: @1018 on //depot/maint-5.004/perl: 2140f6165485c56d1f5c5732484d28716b8f4052
p4raw-link: @1016 on //depot/maint-5.004/perl: b2a0fe98888cc8cc9808cbb17ff2b7f00e09ee60
p4raw-id: //depot/win32/perl@1030
Diffstat (limited to 't/op/die.t')
-rwxr-xr-x | t/op/die.t | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/t/op/die.t b/t/op/die.t index 795d856564..d473ed6b7f 100755 --- a/t/op/die.t +++ b/t/op/die.t @@ -1,6 +1,6 @@ #!./perl -print "1..6\n"; +print "1..10\n"; $SIG{__DIE__} = sub { print ref($_[0]) ? ("ok ",$_[0]->[0]++,"\n") : @_ } ; @@ -24,3 +24,20 @@ eval { }; die if $@; }; + +eval { + eval { + die bless [ 7 ], "Error"; + }; + die if $@; +}; + +print "not " unless ref($@) eq "Out"; +print "ok 10\n"; + +package Error; + +sub PROPAGATE { + print "ok ",$_[0]->[0]++,"\n"; + bless [$_[0]->[0]], "Out"; +} |