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.0.0 / tests / webtbs / tw23299.pp
Size: Mime:
{$MODE DELPHI}

type
  TSmallWrapper<TValue> = record
    Value: TValue;
  end;

  TWrapper<T> = class
  strict private
    class var FSmallWrapper: TSmallWrapper<Integer>;
  public
    class procedure Z; static;
  end;

class procedure TWrapper<T>.Z;
begin
  FSmallWrapper.Value := 0;
  Inc(FSmallWrapper.Value);
  Dec(FSmallWrapper.Value);
  FSmallWrapper.Value := Succ(FSmallWrapper.Value);
  FSmallWrapper.Value := Pred(FSmallWrapper.Value);
end;

begin
  TWrapper<Byte>.Z;
end.