X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=0bad0ad763fe3b298b127518a3af3fbc2e878678;hb=0570527a2279ee6bd14b4c08e653b6d68369475a;hp=b80d7a15c3a490308c7b343ab2843e710f22efde;hpb=49ad3c76fc9656759aab23d9034ebc33f8d8bd9d;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index b80d7a1..0bad0ad 100644 --- a/Test.obn +++ b/Test.obn @@ -1,22 +1,12 @@ MODULE Test; -TYPE - R1 = RECORD END; - R2 = RECORD (R1) END; - R3 = RECORD END; - - P1 = POINTER TO R1; - P2 = POINTER TO R2; +IMPORT SYSTEM; VAR - a : R1; - b : R2; - c : R3; - p1 : P1; - p2 : P2; + ptr : SYSTEM.PTR; + arr : POINTER TO ARRAY OF INTEGER; BEGIN - a := b; - p2 := p1(P2); - p1 := p2(P2); + NEW(arr, 20); + ptr := arr; END Test.