X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=e0445949bf94c9233425839d2dfd602e22e70243;hb=f4aa48e4c1e3b81ccbe3da5c33fdaba3a46081dd;hp=98ac0e23e370819a8b9e96db5387e7f64d97eb65;hpb=a0ff807fe0e69c50469e506836467da32f23f754;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 98ac0e2..e044594 100644 --- a/Test.obn +++ b/Test.obn @@ -1,12 +1,23 @@ MODULE Test; +IMPORT Out; + +TYPE + P1 = POINTER TO R1; + P2 = POINTER TO R2; + P3 = POINTER TO R3; + + R1 = RECORD END; + R2 = RECORD (R1) END; + R3 = RECORD (R2) END; + VAR - a : POINTER TO RECORD END; - b : POINTER TO ARRAY OF INTEGER; - c : PROCEDURE; + r : P1; BEGIN - a := NIL; - b := NIL; - c := NIL; + NEW(r); + Out.Open; + WITH r : P1 DO + Out.String("R1"); Out.Ln; + END; END Test.