mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 23:03:48 +02:00
codetools: added tests helper and protected
git-svn-id: trunk@50114 -
This commit is contained in:
parent
3823cf94c4
commit
ea4449e888
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -997,6 +997,8 @@ components/codetools/tests/fdtbase.pas svneol=native#text/plain
|
||||
components/codetools/tests/finddeclarationtest.lpi svneol=native#text/plain
|
||||
components/codetools/tests/finddeclarationtest.lpr svneol=native#text/plain
|
||||
components/codetools/tests/fpctests/README.txt svneol=native#text/plain
|
||||
components/codetools/tests/fpctests/tchlp14.pp svneol=native#text/plain
|
||||
components/codetools/tests/fpctests/tchlp15.pp svneol=native#text/plain
|
||||
components/codetools/tests/fpctests/tchlp36.pp svneol=native#text/plain
|
||||
components/codetools/tests/fpctests/tchlp40.pp svneol=native#text/plain
|
||||
components/codetools/tests/fpctests/tchlp41.pp svneol=native#text/plain
|
||||
|
26
components/codetools/tests/fpctests/tchlp14.pp
Normal file
26
components/codetools/tests/fpctests/tchlp14.pp
Normal file
@ -0,0 +1,26 @@
|
||||
{ %NORUN }
|
||||
|
||||
{ class helpers can access (strict) protected, public and published members -
|
||||
here: strict protected }
|
||||
program tchlp14;
|
||||
|
||||
{$ifdef fpc}
|
||||
{$mode delphi}
|
||||
{$endif}
|
||||
|
||||
uses
|
||||
uchlp12;
|
||||
|
||||
type
|
||||
TTestHelper = class helper for TTest
|
||||
function AccessTest: Integer;
|
||||
end;
|
||||
|
||||
function TTestHelper.AccessTest: Integer;
|
||||
begin
|
||||
Result := Test3;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
||||
|
26
components/codetools/tests/fpctests/tchlp15.pp
Normal file
26
components/codetools/tests/fpctests/tchlp15.pp
Normal file
@ -0,0 +1,26 @@
|
||||
{ %NORUN }
|
||||
|
||||
{ class helpers can access (strict) protected, public and published members -
|
||||
here: protected }
|
||||
program tchlp15;
|
||||
|
||||
{$ifdef fpc}
|
||||
{$mode delphi}
|
||||
{$endif}
|
||||
|
||||
uses
|
||||
uchlp12;
|
||||
|
||||
type
|
||||
TTestHelper = class helper for TTest
|
||||
function AccessTest: Integer;
|
||||
end;
|
||||
|
||||
function TTestHelper.AccessTest: Integer;
|
||||
begin
|
||||
Result := Test4;
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user