summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/test/prototype.t
diff options
context:
space:
mode:
Diffstat (limited to 'perl_checker.src/test/prototype.t')
-rw-r--r--perl_checker.src/test/prototype.t23
1 files changed, 0 insertions, 23 deletions
diff --git a/perl_checker.src/test/prototype.t b/perl_checker.src/test/prototype.t
deleted file mode 100644
index 6e56aae..0000000
--- a/perl_checker.src/test/prototype.t
+++ /dev/null
@@ -1,23 +0,0 @@
-
-sub xxx { 'yyy' } if the function doesn't take any parameters, please use the empty prototype.
- example "sub foo() { ... }"
-
-sub xxx { an non-optional argument must not follow an optional argument
- my ($o_xxx, $yyy) = @_;
- ($o_xxx, $yyy);
-}
-
-sub xxx { an array must be the last variable in a prototype
- my (@xxx, $yyy) = @_;
- @xxx, $yyy;
-}
-
-bad() unknown function bad
-
-sub f0() {} too many parameters
-f0('yyy')
-
-sub f2 { my ($x, $_y) = @_; $x } not enough parameters
-f2('yyy')
-
-N("xxx %s yyy") not enough parameters