Browse Source

*** empty log message ***

florian 25 years ago
parent
commit
bbb8f0b7fd
1 changed files with 25 additions and 0 deletions
  1. 25 0
      tests/webtbs/tw1207.pp

+ 25 - 0
tests/webtbs/tw1207.pp

@@ -0,0 +1,25 @@
+{$mode objfpc}
+program change;
+
+type
+  aclasstype = class
+    prop : integer;
+  end;
+
+procedure trychange (const aclass : aclasstype);
+begin
+  aclass.prop := 5;
+end;
+
+var
+  aclass : aclasstype;
+
+begin
+  aclass := AClassType.Create;
+  try
+    trychange (aclass)
+  finally
+    aclass.free;
+  end;
+end.
+