mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-11 02:39:24 +01:00
* changed to $APPTYPE TOOL on MacOS
This commit is contained in:
parent
a51e035ecc
commit
33c888aebe
@ -1,18 +1,24 @@
|
|||||||
{ %RESULT=123 }
|
{ %RESULT=123 }
|
||||||
{ Source provided for Free Pascal Bug Report 2197 }
|
{ Source provided for Free Pascal Bug Report 2197 }
|
||||||
{ Submitted by "Pavel V.Ozerski" on 2002-10-23 }
|
{ Submitted by "Pavel V.Ozerski" on 2002-10-23 }
|
||||||
{ e-mail: pavel@insect.mail.iephb.ru }
|
{ e-mail: pavel@insect.mail.iephb.ru }
|
||||||
{$APPTYPE CONSOLE}
|
|
||||||
{modified sample of Vlad Smaglyuk}
|
{$ifndef MACOS}
|
||||||
procedure Average ({const} Row : Array of byte);
|
{$APPTYPE CONSOLE}
|
||||||
begin
|
{$else}
|
||||||
writeln('Procedure body');
|
{$APPTYPE TOOL}
|
||||||
end;
|
{$endif}
|
||||||
BEGIN
|
|
||||||
writeln('Before call');
|
{modified sample of Vlad Smaglyuk}
|
||||||
Average([1,2,3]);
|
procedure Average ({const} Row : Array of byte);
|
||||||
writeln('After call');
|
begin
|
||||||
{ We need to be sure that the following exitcode is
|
writeln('Procedure body');
|
||||||
returned }
|
end;
|
||||||
runerror(123);
|
BEGIN
|
||||||
END.
|
writeln('Before call');
|
||||||
|
Average([1,2,3]);
|
||||||
|
writeln('After call');
|
||||||
|
{ We need to be sure that the following exitcode is
|
||||||
|
returned }
|
||||||
|
runerror(123);
|
||||||
|
END.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user