mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 14:09:59 +02:00
* adapted to win95 where zero is does not create a page fault
This commit is contained in:
parent
ddd554ab2a
commit
c93f715239
@ -34,9 +34,13 @@ Begin
|
||||
{ generate a sigsegv by writing to null-address }
|
||||
sel:=0;
|
||||
v:=nil;
|
||||
{$ifdef go32v2}
|
||||
{ on win9X no zero page protection :( }
|
||||
v:=pointer(-2);
|
||||
{$endif go32v2}
|
||||
word(v^):=sel;
|
||||
{ we should not go to here }
|
||||
Writeln('Error : signal not called');
|
||||
Halt(1);
|
||||
{$endif OK}
|
||||
end.
|
||||
end.
|
Loading…
Reference in New Issue
Block a user