projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 1 development
[unix-history]
/
tests
/
t09.p
program sideffect(output);
var
a, z: integer;
function sneaky(x: integer): integer;
begin
z := z-x;
sneaky := sqr(x);
end;
begin
z := 10;
a := sneaky(z);
writeln(a, z);
z := 10;
a := sneaky(10) * sneaky(z);
writeln(a, z);
z := 10;
a := sneaky(z) * sneaky(10);
writeln(a, z);
end.