X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=b80d7a15c3a490308c7b343ab2843e710f22efde;hb=49ad3c76fc9656759aab23d9034ebc33f8d8bd9d;hp=98ac0e23e370819a8b9e96db5387e7f64d97eb65;hpb=a0ff807fe0e69c50469e506836467da32f23f754;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 98ac0e2..b80d7a1 100644 --- a/Test.obn +++ b/Test.obn @@ -1,12 +1,22 @@ MODULE Test; +TYPE + R1 = RECORD END; + R2 = RECORD (R1) END; + R3 = RECORD END; + + P1 = POINTER TO R1; + P2 = POINTER TO R2; + VAR - a : POINTER TO RECORD END; - b : POINTER TO ARRAY OF INTEGER; - c : PROCEDURE; + a : R1; + b : R2; + c : R3; + p1 : P1; + p2 : P2; BEGIN - a := NIL; - b := NIL; - c := NIL; + a := b; + p2 := p1(P2); + p1 := p2(P2); END Test.