Better ithreads cloning - add all SVs with a 0 refcnt to the temps stack.
[p5sagit/p5-mst-13.2.git] / t / comp / decl.t
CommitLineData
8d063cd8 1#!./perl
2
8d063cd8 3# check to see if subroutine declarations work everwhere
4
5sub one {
6 print "ok 1\n";
7}
8format one =
9ok 5
10.
11
12print "1..7\n";
13
065f14eb 14one();
15two();
8d063cd8 16
17sub two {
18 print "ok 2\n";
19}
20format two =
21@<<<
22$foo
23.
24
25if ($x eq $x) {
26 sub three {
27 print "ok 3\n";
28 }
065f14eb 29 three();
8d063cd8 30}
31
065f14eb 32four();
8d063cd8 33$~ = 'one';
34write;
35$~ = 'two';
36$foo = "ok 6";
37write;
38$~ = 'three';
39write;
40
41format three =
42ok 7
43.
44
45sub four {
46 print "ok 4\n";
47}