fpc/tests/webtbs/tw28640.pp
2021-03-27 17:13:14 +00:00

16 lines
259 B
ObjectPascal

{ %cpu=x86_64 }
function test : int64;assembler;
{$ASMMODE INTEL}
asm
MOV RAX,'=TXEHTAP' // FAIL: LONG STRING "PATHEXT="
end;
var
s : string[8];
l : int64 absolute s[1];
begin
l:=test;
s[0]:=#8;
if s<>'PATHEXT=' then
halt(1);
end.