fpc/tests/test/tchlp1.pp
svenbarth 18ed600cbe Added 36 tests (tchlp*.pp) and some units (uchlp*).
git-svn-id: branches/svenbarth/classhelpers@16730 -
2011-01-07 21:56:35 +00:00

51 lines
802 B
ObjectPascal

{%NORUN}
{ checks for support of the class helper syntax in mode objfpc }
program tchlp1;
{$mode objfpc}
type
TObjectHelper = class helper for TObject
procedure SomePublicMethod;
strict private
procedure SomeStrictPrivateMethod;
private
procedure SomePrivateMethod;
strict protected
procedure SomeStrictProtectedMethod;
protected
procedure SomeProtectedMethod;
public
procedure SomePublicMethod2;
end;
procedure TObjectHelper.SomePublicMethod;
begin
end;
procedure TObjectHelper.SomeStrictPrivateMethod;
begin
end;
procedure TObjectHelper.SomePrivateMethod;
begin
end;
procedure TObjectHelper.SomeStrictProtectedMethod;
begin
end;
procedure TObjectHelper.SomeProtectedMethod;
begin
end;
procedure TObjectHelper.SomePublicMethod2;
begin
end;
begin
end.