소스 검색

* new bug

peter 22 년 전
부모
커밋
211eb846ca
1개의 변경된 파일34개의 추가작업 그리고 0개의 파일을 삭제
  1. 34 0
      tests/webtbs/tw2645.pp

+ 34 - 0
tests/webtbs/tw2645.pp

@@ -0,0 +1,34 @@
+{ %version=1.1 }
+
+{$mode objfpc}
+{$inline on}
+
+type
+  c = class
+    l : longint;
+    procedure p;inline;
+    procedure p2;
+  end;
+
+    procedure c.p;inline;
+    begin
+      writeln(l);
+      inc(l,10);
+    end;
+
+    procedure c.p2;
+    begin
+      l:=10;
+      p;
+      if l<>20 then
+        halt(1);
+    end;
+
+var
+  o : c;
+begin
+  o:=c.create;
+  o.p2;
+  o.free;
+end.
+