mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 06:30:09 +02:00
no message
This commit is contained in:
parent
02310c99e2
commit
e966c1d79d
16
tests/webtbs/tw3160a.pp
Normal file
16
tests/webtbs/tw3160a.pp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ %RESULT=207 }
|
||||||
|
{ Source provided for Free Pascal Bug Report 3160 }
|
||||||
|
{ Submitted by "Michalis Kamburelis" on 2004-06-12 }
|
||||||
|
{ e-mail: michalis@camelot.homedns.org }
|
||||||
|
var A:Extended;
|
||||||
|
begin
|
||||||
|
{ All lines below will raise runtime error 207
|
||||||
|
(Invalid floating point operation, converted to EInvalidOp exception)
|
||||||
|
under Win32.
|
||||||
|
|
||||||
|
But under Linux they raise runtime error 216
|
||||||
|
(General protection fault, converted to EAccessViolation). }
|
||||||
|
A:=0; Writeln(0 / A);
|
||||||
|
A:=-3; Writeln(Ln(A));
|
||||||
|
A:=-3; Writeln(Sqrt(A));
|
||||||
|
end.
|
14
tests/webtbs/tw3160b.pp
Normal file
14
tests/webtbs/tw3160b.pp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ %RESULT=207 }
|
||||||
|
{ Source provided for Free Pascal Bug Report 3160 }
|
||||||
|
{ Submitted by "Michalis Kamburelis" on 2004-06-12 }
|
||||||
|
{ e-mail: michalis@camelot.homedns.org }
|
||||||
|
var A:Extended;
|
||||||
|
begin
|
||||||
|
{ All lines below will raise runtime error 207
|
||||||
|
(Invalid floating point operation, converted to EInvalidOp exception)
|
||||||
|
under Win32.
|
||||||
|
|
||||||
|
But under Linux they raise runtime error 216
|
||||||
|
(General protection fault, converted to EAccessViolation). }
|
||||||
|
A:=-3; Writeln(Ln(A));
|
||||||
|
end.
|
14
tests/webtbs/tw3160c.pp
Normal file
14
tests/webtbs/tw3160c.pp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ %RESULT=207 }
|
||||||
|
{ Source provided for Free Pascal Bug Report 3160 }
|
||||||
|
{ Submitted by "Michalis Kamburelis" on 2004-06-12 }
|
||||||
|
{ e-mail: michalis@camelot.homedns.org }
|
||||||
|
var A:Extended;
|
||||||
|
begin
|
||||||
|
{ All lines below will raise runtime error 207
|
||||||
|
(Invalid floating point operation, converted to EInvalidOp exception)
|
||||||
|
under Win32.
|
||||||
|
|
||||||
|
But under Linux they raise runtime error 216
|
||||||
|
(General protection fault, converted to EAccessViolation). }
|
||||||
|
A:=-3; Writeln(Sqrt(A));
|
||||||
|
end.
|
Loading…
Reference in New Issue
Block a user