peter 22 лет назад
Родитель
Сommit
50ec6f50b5
1 измененных файлов с 28 добавлено и 0 удалено
  1. 28 0
      tests/webtbs/tw2220.pp

+ 28 - 0
tests/webtbs/tw2220.pp

@@ -0,0 +1,28 @@
+{ Source provided for Free Pascal Bug Report 2220 }
+{ Submitted by "marco" on  2002-11-06 }
+{ e-mail: [email protected] }
+{$H+}
+{$ifdef fpc}{$MODE DELPHI}{$endif}
+// NO OUTPUT, GDB SHOWS SIGSEGV IN DECR_REF
+
+type bla=class
+        freceivebuffer : array[0..4095] of char;
+        flastresponse  : String;
+        procedure themethod;
+        end;
+
+procedure bla.themethod;
+        var i : longint;
+        begin
+         i:=10;
+         flastresponse:=copy(freceivebuffer,1,I-1);
+         writeln('point 1');
+        end;
+
+var x : bla;
+
+begin
+  x:=bla.create;
+  x.themethod;
+  writeln('point 2');
+end.