xref: /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/sub.t (revision 0:68f95e015346)
1*0Sstevel@tonic-gate#!./perl -w
2*0Sstevel@tonic-gate
3*0Sstevel@tonic-gateBEGIN {
4*0Sstevel@tonic-gate    chdir 't' if -d 't';
5*0Sstevel@tonic-gate    @INC = '../lib';
6*0Sstevel@tonic-gate    require './test.pl';
7*0Sstevel@tonic-gate}
8*0Sstevel@tonic-gate
9*0Sstevel@tonic-gateplan( tests => 4 );
10*0Sstevel@tonic-gate
11*0Sstevel@tonic-gatesub empty_sub {}
12*0Sstevel@tonic-gate
13*0Sstevel@tonic-gateis(empty_sub,undef,"Is empty");
14*0Sstevel@tonic-gateis(empty_sub(1,2,3),undef,"Is still empty");
15*0Sstevel@tonic-gate@test = empty_sub();
16*0Sstevel@tonic-gateis(scalar(@test), 0, 'Didnt return anything');
17*0Sstevel@tonic-gate@test = empty_sub(1,2,3);
18*0Sstevel@tonic-gateis(scalar(@test), 0, 'Didnt return anything');
19*0Sstevel@tonic-gate
20