Browse Source

+ 788,793 and 802

pierre 25 years ago
parent
commit
e2edbf2262
3 changed files with 49 additions and 0 deletions
  1. 11 0
      tests/webtbs/tbug788.pp
  2. 29 0
      tests/webtbs/tbug793.pp
  3. 9 0
      tests/webtbs/tbug802.pp

+ 11 - 0
tests/webtbs/tbug788.pp

@@ -0,0 +1,11 @@
+Uses Math;
+
+Var
+   I : Integer;
+
+Begin
+   For I := 0 To 359 Do
+   Begin
+      WriteLn( RadToDeg(ArcSin( DegToRad(Real(I)))):3:18);
+   End
+End.

+ 29 - 0
tests/webtbs/tbug793.pp

@@ -0,0 +1,29 @@
+{$MODE Delphi}
+
+program bug;
+type
+
+TMyObject = class
+  public
+    constructor Create; virtual;
+    constructor Init;
+end;
+
+var
+  M: TMyObject;
+
+
+constructor TMyObject.Create;
+begin
+  Writeln('Now executing  TmyObject.Create');
+end;
+
+constructor TMyObject.Init;
+begin
+  Create;
+  Writeln('Now finishing the INIT constructor.');
+end;
+
+begin
+  M := TMyObject.Init;
+end.

+ 9 - 0
tests/webtbs/tbug802.pp

@@ -0,0 +1,9 @@
+program test;
+  function testf (a:byte;b:integer;c:char):char;
+  begin
+    testf:=c;
+  end;
+begin
+  writeln('"',testf(0,-1,'A'),'"');
+end.
+