Explorar o código

*** empty log message ***

florian %!s(int64=25) %!d(string=hai) anos
pai
achega
64b3cac231
Modificáronse 2 ficheiros con 21 adicións e 1 borrados
  1. 2 1
      tests/test/readme.txt
  2. 19 0
      tests/test/testarr1.pp

+ 2 - 1
tests/test/readme.txt

@@ -25,4 +25,5 @@ Units ................. testu1.pp      tests init. & finalization and halt
                         testu4.pp
                         testu4.pp
                         testu5.pp
                         testu5.pp
 case .................. testcase.pp    tests case statements with byte and word
 case .................. testcase.pp    tests case statements with byte and word
-                                       sized decision variables
+                                       sized decision variables
+Arrays ................ testarr1.pp    small test for open arrays with classes

+ 19 - 0
tests/test/testarr1.pp

@@ -0,0 +1,19 @@
+{$mode objfpc}
+type
+   tc1 = class
+   end;
+
+   tc2 = class(tc1)
+   end;
+
+   tcoc1 = class of tc1;
+   tcoc2 = class of tc2;
+
+procedure p(const a : array of tcoc1);
+
+  begin
+  end;
+
+begin
+   p([tc2]);
+end.