mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 23:10:24 +02:00
* Fix from Mattias Gaertner for System.Delete() use analyses.
git-svn-id: trunk@35703 -
This commit is contained in:
parent
945b0aa98b
commit
9e39442dbc
@ -607,6 +607,8 @@ begin
|
||||
UseExpr(TPasExpr(El))
|
||||
else if C=TPasEnumValue then
|
||||
MarkElementAsUsed(El)
|
||||
else if C.InheritsFrom(TPasModule) then
|
||||
// e.g. unitname.identifier -> the module is used by the identifier
|
||||
else
|
||||
RaiseNotSupported(20170307090947,El);
|
||||
end;
|
||||
|
@ -1134,8 +1134,10 @@ begin
|
||||
StartProgram(false);
|
||||
Add('var {#a_notused}a: longint;');
|
||||
Add('var {#b_used}b: longint;');
|
||||
Add('var {#c_used}c: longint;');
|
||||
Add('begin');
|
||||
Add(' b:=2;');
|
||||
Add(' afile.c:=3;');
|
||||
AnalyzeWholeProgram;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user