fpc/tests/tbs/tb0244.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

22 lines
417 B
ObjectPascal

{ %CPU=i386 }
{ Old file: tbs0285.pp }
{ Asm, TYPE not support in intel mode OK 0.99.13 (PFV) }
{$asmmode intel}
TYPE something = RECORD big:LONGINT; small:BYTE; END;
FUNCTION typesize:INTEGER; ASSEMBLER;
ASM
MOV EAX, TYPE something
END;
BEGIN
writeln(typesize);
if typesize<>sizeof(something) then
begin
Writeln('Error in type inside intel asm');
Halt(1);
end;
END.