blob: d9553350d9675e29d9647d9e8da13da2404a5b29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{$mode macpas}
program tmaclocalprocparam3;
procedure p1( procedure pp);
begin
pp
end;
procedure p2( procedure pp);
begin
p1( pp)
end;
procedure n;
begin
writeln( 'calling through n')
end;
procedure q;
var qi: longint;
procedure r;
begin
if qi = 1 then
writeln( 'success for r')
else
begin
writeln( 'fail');
halt( 1)
end
end;
begin
qi:= 1;
p1( r);
p2( r);
p1( n);
p2( n);
end;
begin
q
end.
|