diff options
Diffstat (limited to 'ext/arybase/t')
-rw-r--r-- | ext/arybase/t/arybase.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/arybase/t/arybase.t b/ext/arybase/t/arybase.t index 230ee7e007..a7edaf41bc 100644 --- a/ext/arybase/t/arybase.t +++ b/ext/arybase/t/arybase.t @@ -1,6 +1,7 @@ #!perl # Basic tests for $[ as a variable +# plus miscellaneous bug fix tests use Test::More tests => 7; @@ -30,4 +31,6 @@ eval { my $x = 45; $[ = \$x }; $l = __LINE__; is $@, "That use of \$[ is unsupported at $f line $l.\n", 'error when setting $[ to ref'; +sub foo { my $x; $x = wait } # compilation of this routine used to crash + 1; |