* added [] crash test for array of byte

* added TObject property test
This commit is contained in:
peter 1999-12-31 14:24:58 +00:00
parent c791505a38
commit 56c602fc83
2 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,10 @@ Program TestAOC;
end;
}
procedure testit2 (args: array of byte);
begin
end;
Procedure Testit (Args: Array of const);
Var I : longint;
@ -86,6 +90,7 @@ begin
S:='Ansistring 1';
T:='AnsiString 2';
writeln ('Size of VarRec : ',Sizeof(TVarRec));
Testit ([]);
Testit ([1,2]);
Testit (['A','B']);
Testit ([TRUE,FALSE,TRUE]);
@ -96,4 +101,7 @@ begin
Testit ([ObjA,ObjB]);
Testit ([1.234,1.234]);
TestIt ([AClass]);
TestIt2 ([]);
TestIt2 ([1,2]);
end.

View File

@ -32,6 +32,7 @@ Type
FExtended : Extended;
FMyEnum : TMyEnum;
FAnsiString : AnsiSTring;
FObj : TObject;
FStored : Boolean;
Function GetBoolean : Boolean;
Function GetByte : Byte;
@ -83,6 +84,7 @@ Type
Constructor Create;
Destructor Destroy;override;
Published
Property ObjField: TObject read FObj write FObj;
Property BooleanField : Boolean Read FBoolean Write FBoolean;
Property ByteField : Byte Read FByte Write FByte;
Property CharField : Char Read FChar Write FChar;