mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 22:40:30 +02:00
no message
This commit is contained in:
parent
aebc04656f
commit
5edcaa9912
39
tests/tbs/tb0458.pp
Normal file
39
tests/tbs/tb0458.pp
Normal file
@ -0,0 +1,39 @@
|
||||
type smallword=word;
|
||||
|
||||
Type LocalHeader = Record
|
||||
Time : Longint;
|
||||
End;
|
||||
|
||||
Type PkZipObject = Object
|
||||
Buf : longint;
|
||||
|
||||
Constructor ZIPInit;
|
||||
Procedure FindFirstEntry; Virtual;
|
||||
End; {PkzipObject}
|
||||
|
||||
PkzipPtr = ^PkzipObject;
|
||||
|
||||
|
||||
Constructor PkzipObject.ZIPInit;
|
||||
Begin
|
||||
End;
|
||||
|
||||
|
||||
Procedure PkzipObject.FindFirstEntry;
|
||||
var LocalHeaderBuf: LocalHeader ABSOLUTE buf;
|
||||
Begin
|
||||
LocalHeaderBuf.Time:=12341234;
|
||||
End;
|
||||
|
||||
var
|
||||
o : PkzipObject;
|
||||
|
||||
begin
|
||||
o.ZIPInit;
|
||||
o.FindFirstEntry;
|
||||
if o.Buf<>12341234 then
|
||||
begin
|
||||
writeln('error');
|
||||
halt(1);
|
||||
end;
|
||||
End.
|
Loading…
Reference in New Issue
Block a user