Browse Source

* new bug

peter 21 years ago
parent
commit
bef7bf3539
1 changed files with 23 additions and 0 deletions
  1. 23 0
      tests/webtbs/tw2923.pp

+ 23 - 0
tests/webtbs/tw2923.pp

@@ -0,0 +1,23 @@
+{ %opt=-O2 -CR }
+
+{ Source provided for Free Pascal Bug Report 2923 }
+{ Submitted by "Sergey Kosarevsky" on  2004-01-30 }
+{ e-mail: [email protected] }
+
+{$mode objfpc}
+
+Type tMyClass=Class
+       Public
+        Constructor Init;
+     End;
+
+Constructor tMyClass.Init;
+Begin
+   Inherited Create;
+End;                        // <- line 9
+
+Var A:tMyClass;
+
+Begin
+   A:=tMyClass.Init;
+End.