X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=b9b14ae66be8abf069ff9c19ca678ff3e117694d;hb=57963798c338b0b73e032e9288003fd462f8b954;hp=03df037492a62bec8642dbd45bd9a5ec5f2cc689;hpb=b09b4829b70cf34a470003286ea100663d7fe442;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 03df037..b9b14ae 100644 --- a/Test.obn +++ b/Test.obn @@ -1,12 +1,23 @@ MODULE Test; +TYPE + Stream* = POINTER TO Handle; + Handle = RECORD END; + + Writer* = RECORD END; + + Printer* = RECORD (Writer) END; + VAR - x : ARRAY 10 OF INTEGER; - p : POINTER TO ARRAY OF ARRAY OF INTEGER; + s : Stream; + o : Writer; + out : Printer; + +PROCEDURE SetStream(VAR w : Writer; stream : Stream); +BEGIN +END SetStream; BEGIN - NEW(p, 20, 30); - ASSERT(LEN(x, 0) = 10); - ASSERT(LEN(p^, 0) = 20); - ASSERT(LEN(p^, 1) = 30); + SetStream(o, s); + SetStream(out, s); END Test.