fpc/tests/test/opt/tdfa18.pp
florian 45807056c5 * factored out SymbolCandidateForWarningOrHint
* do not issue a hint if a normal parameter is passed to another procedure by var
+ test

git-svn-id: trunk@33248 -
2016-03-13 19:14:26 +00:00

15 lines
159 B
ObjectPascal

{ %OPT=-Oodfa -vwh -Seh }
procedure modify(var p: pointer);
begin
inc(p);
end;
procedure test(p: pointer);
begin
modify(p);
end;
begin
test(nil);
end.