mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 13:09:16 +02:00
fcl-passrc: useanalyzer: no hint for assembler result
git-svn-id: trunk@38080 -
This commit is contained in:
parent
32d9e32899
commit
1267814275
@ -111,6 +111,7 @@ type
|
||||
procedure TestM_Hint_FunctionResultDoesNotSeemToBeSet_Abstract;
|
||||
procedure TestM_Hint_FunctionResultRecord;
|
||||
procedure TestM_Hint_FunctionResultPassRecordElement;
|
||||
procedure TestM_Hint_FunctionResultAssembler;
|
||||
procedure TestM_Hint_AbsoluteVar;
|
||||
|
||||
// whole program optimization
|
||||
@ -1585,6 +1586,19 @@ begin
|
||||
CheckUseAnalyzerUnexpectedHints;
|
||||
end;
|
||||
|
||||
procedure TTestUseAnalyzer.TestM_Hint_FunctionResultAssembler;
|
||||
begin
|
||||
StartProgram(false);
|
||||
Add([
|
||||
'function GetIt: longint; assembler;',
|
||||
'asm',
|
||||
'end;',
|
||||
'begin',
|
||||
' GetIt;']);
|
||||
AnalyzeProgram;
|
||||
CheckUseAnalyzerUnexpectedHints;
|
||||
end;
|
||||
|
||||
procedure TTestUseAnalyzer.TestM_Hint_AbsoluteVar;
|
||||
begin
|
||||
StartProgram(false);
|
||||
|
Loading…
Reference in New Issue
Block a user