summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2000-10-29 20:37:09 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-29 21:07:47 +0000
commitc2b35b101bb7661acee93ff085742b0940f0bb9f (patch)
tree230b8e183cc90a38d89c890bb6ffc64be7519fe1 /t/comp
parente576b45761f07c8c98430e3a5530beb0c09fb876 (diff)
downloadperl-c2b35b101bb7661acee93ff085742b0940f0bb9f.tar.gz
Tests for #7487.
Subject: Re: [ID 20001029.002] Not OK: perl v5.7.0 +DEVEL7462 on i686-linux 2.2.16a (UNINSTALLED) Message-ID: <m34s1vsdd6.fsf@ak-71.mind.de> p4raw-id: //depot/perl@7488
Diffstat (limited to 't/comp')
-rwxr-xr-xt/comp/proto.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/comp/proto.t b/t/comp/proto.t
index f9731ee489..9ac1e0f470 100755
--- a/t/comp/proto.t
+++ b/t/comp/proto.t
@@ -16,7 +16,7 @@ BEGIN {
use strict;
-print "1..110\n";
+print "1..122\n";
my $i = 1;
@@ -485,3 +485,12 @@ sub sreftest (\$$) {
sreftest($helem{$i}, $i++);
sreftest $aelem[0], $i++;
}
+
+# test prototypes when they are evaled and there is a syntax error
+for my $p ( "", qw{ () ($) ($@) ($%) ($;$) (&) (&\@) (&@) (%) (\%) (\@) } ) {
+ no warnings 'redefine';
+ my $eval = "sub evaled_subroutine $p { &void *; }";
+ eval $eval;
+ print "# eval[$eval]\nnot " unless $@ && $@ =~ /syntax error/;
+ print "ok ", $i++, "\n";
+}