Browse Source

* new bugs

peter 22 years ago
parent
commit
267e5fd63e
2 changed files with 42 additions and 0 deletions
  1. 23 0
      tests/webtbs/tw2815.pp
  2. 19 0
      tests/webtbs/tw2817.pp

+ 23 - 0
tests/webtbs/tw2815.pp

@@ -0,0 +1,23 @@
+{ %opt=-Sew }
+
+{ Source provided for Free Pascal Bug Report 2815 }
+{ Submitted by "Mattias Gaertner" on  2003-11-30 }
+{ e-mail: [email protected] }
+program VirtualCreate;
+
+{$mode objfpc}{$H+}
+
+type
+  TAbstractClass = class
+  public
+    constructor Create;
+    constructor VirtualCreate; virtual; abstract;
+  end;
+
+constructor TAbstractClass.Create;
+begin
+  VirtualCreate;
+end;
+
+begin
+end.

+ 19 - 0
tests/webtbs/tw2817.pp

@@ -0,0 +1,19 @@
+{ %opt=-Sen }
+
+{ Source provided for Free Pascal Bug Report 2817 }
+{ Submitted by "Mattias Gaertner" on  2003-11-30 }
+{ e-mail: [email protected] }
+program UnusedVar;
+
+{$mode objfpc}{$H+}
+
+procedure DoSomething(var Lines: PPChar; var LineCount: integer);
+var
+  p: PPChar;
+begin
+  p:=Lines;
+  p[LineCount-1]:=nil;
+end;
+
+begin
+end.