blob: f93c6f634303832a145eb59bf46d2f373cc6ccf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ %fail }
{$modeswitch nestedprocvars}
type
tprocedure = procedure;
procedure test(procedure nestedproc);
begin
end;
var
pp: tprocedure;
begin
{ passing global procvars to nested procedures is not allowed to
ensure that they can also be implemented using compile-time
generated trampolines if necesarry }
test(pp);
end.
|