fcl-passrc: fixed proc arg file

This commit is contained in:
mattias 2025-01-10 08:51:41 +01:00
parent c3110dfaa9
commit 5e41a1417f
2 changed files with 8 additions and 1 deletions

View File

@ -2159,7 +2159,7 @@ Const
NoHintTokens = [tkProcedure,tkFunction];
InterfaceKindTypes : Array[Boolean] of TPasObjKind = (okInterface,okObjcProtocol);
ClassKindTypes : Array[TLocalClassType] of TPasObjKind = (okClass,okObjCClass,okObjcCategory,okClassHelper);
FuncArgResultTypeTokens = [tkIdentifier,tkarray,tkSpecialize];
FuncArgResultTypeTokens = [tkIdentifier,tkarray,tkSpecialize,tkfile];
var
PM: TPackMode;

View File

@ -104,6 +104,7 @@ type
Procedure TestFunctionArrayOfConstArg;
procedure TestProcedureConstArrayOfConstArg;
Procedure TestFunctionConstArrayOfConstArg;
Procedure TestProcedureArgFile;
Procedure TestProcedureCdecl;
Procedure TestFunctionCdecl;
@ -832,6 +833,12 @@ begin
AssertArrayArg(FuncType,0,'B',argConst,'');
end;
procedure TTestProcedureFunction.TestProcedureArgFile;
begin
ParseProcedure('(Const B : File)');
AssertProc([],[],ccDefault,1);
end;
procedure TTestProcedureFunction.TestCallingConventionSysV_ABI_Default;
begin
ParseProcedure('; SysV_ABI_Default');