mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-04 04:00:44 +01:00
codetools: test varargs of type
git-svn-id: trunk@62654 -
This commit is contained in:
parent
68c2c03aa8
commit
6f178bc229
@ -104,6 +104,7 @@ type
|
||||
procedure TestFindDeclaration_AnonymProc;
|
||||
procedure TestFindDeclaration_AnonymProc_ExprDot;
|
||||
procedure TestFindDeclaration_ArrayMultiDimDot;
|
||||
procedure TestFindDeclaration_VarArgsOfType;
|
||||
// test all files in directories:
|
||||
procedure TestFindDeclaration_FPCTests;
|
||||
procedure TestFindDeclaration_LazTests;
|
||||
@ -1019,6 +1020,20 @@ begin
|
||||
FindDeclarations(Code);
|
||||
end;
|
||||
|
||||
procedure TTestFindDeclaration.TestFindDeclaration_VarArgsOfType;
|
||||
begin
|
||||
StartProgram;
|
||||
Add([
|
||||
'procedure Run; varargs of word;',
|
||||
'begin',
|
||||
' Run{declaration:run}(1,2);',
|
||||
'end;',
|
||||
'begin',
|
||||
' Run{declaration:run}(3);',
|
||||
'end.']);
|
||||
FindDeclarations(Code);
|
||||
end;
|
||||
|
||||
procedure TTestFindDeclaration.TestFindDeclaration_FPCTests;
|
||||
begin
|
||||
TestFiles('fpctests');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user