+ added checks for the pointer and procvar sizes in the compact and large memory

layout tests

git-svn-id: trunk@28073 -
This commit is contained in:
nickysn 2014-06-26 09:20:51 +00:00
parent 4c3eb391ef
commit be0afd9625
2 changed files with 17 additions and 1 deletions

View File

@ -33,8 +33,16 @@ begin
ErrorsFound := True;
end;
var
ProcVar: Procedure;
begin
ErrorsFound := False;
Writeln('SizeOf(Pointer)=', SizeOf(Pointer));
if SizeOf(Pointer) <> 4 then
Error('SizeOf(Pointer) <> 4');
Writeln('SizeOf(ProcVar)=', SizeOf(ProcVar));
if SizeOf(ProcVar) <> 2 then
Error('SizeOf(ProcVar) <> 2');
GetMem(HeapP, 5);
CS := CSeg;
DS := DSeg;
@ -60,4 +68,4 @@ begin
Writeln('Ok!');
end
{$ENDIF SKIP_TEST}
.
.

View File

@ -29,8 +29,16 @@ begin
ErrorsFound := True;
end;
var
ProcVar: Procedure;
begin
ErrorsFound := False;
Writeln('SizeOf(Pointer)=', SizeOf(Pointer));
if SizeOf(Pointer) <> 4 then
Error('SizeOf(Pointer) <> 4');
Writeln('SizeOf(ProcVar)=', SizeOf(ProcVar));
if SizeOf(ProcVar) <> 4 then
Error('SizeOf(ProcVar) <> 4');
GetMem(HeapP, 5);
CS := CSeg;
DS := DSeg;