fpc/tests/webtbs/tw1229.pp
Jonas Maebe 69631be0b3 + nostackframe directive to fix on darwin/x86
git-svn-id: trunk@2974 -
2006-03-19 20:08:21 +00:00

25 lines
558 B
ObjectPascal

{ %CPU=i386 }
{ Source provided for Free Pascal Bug Report 1229 }
{ Submitted by "Rich Pasco" on 2000-11-10 }
{ e-mail: pasco@acm.org }
{$asmmode intel }
procedure SomePostScript; assembler;nostackframe;
asm
db '/pop2 { pop pop } def',0;
end;
var
st : string;
begin
WriteLn(pchar(@SomePostScript));
st:=strpas(pchar(@SomePostScript));
if st<>'/pop2 { pop pop } def' then
begin
Writeln('Error in assembler parsing');
if st='/pop2 def' then
Writeln('Assembler parser removes comments');
Halt(1);
end;
end.