Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / webtbs / tw30666.pp
Size: Mime:
{ %target=linux,darwin,freebsd,openbsd,netbsd,aix,solaris,android,win32,win64 }

{$mode objfpc}

uses
  sysutils;

procedure foo;
var
  s: PChar = 'PChar';
  b: boolean;
begin
  b:=false;
  try
    s[0] := 'a';
  except
    on e: exception do
      begin
        if e is EAccessViolation then
          b:=true;
      end;
  end;
  if not b then
    halt(1);
end;

begin
  foo;
end.