littletest48.out

来自「格式化源码的最新板」· OUT 代码 · 共 49 行

OUT
49
字号
unit LittleTest48;

{ AFS 7 October 2003

 This unit compiles but is not semantically meaningfull
 it is test cases for the code formatting utility
}

interface

{ test an assertionn failure
  reported by Adem Baba
}

type
  TFoo = record
    Stuff:   PChar;
    Counter: integer;
    Name:    string;
  end;

  TBar = record
    Flag:  boolean;
    myFoo: TFoo;
    Size:  integer;
  end;

  TFish = record
    Counter: integer;
    myFoo:   TFoo;
    myBar:   TBar;
  end;

implementation


function FindTheFish(const piSoy: integer): TFish;
begin
  { complex expr on the left hand side of :=  }
  Result.Counter    := 3;
  Result.myBar.Size := (piSoy + 1);
  Result.myBar.MyFoo.Counter := (piSoy + 1);
  (Result.myFoo.Stuff +piSoy)^ := #0;
end;



end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?