X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=ecfde58b9f0e5fadb5eb6a9a884a62ede7a56351;hb=674b8e806962b40992601aca7f1234103a3aefb0;hp=98ac0e23e370819a8b9e96db5387e7f64d97eb65;hpb=a0ff807fe0e69c50469e506836467da32f23f754;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 98ac0e2..ecfde58 100644 --- a/Test.obn +++ b/Test.obn @@ -1,12 +1,21 @@ MODULE Test; +TYPE + A = POINTER TO RECORD B : B; END; + + B = POINTER TO RECORD x : A END; + VAR - a : POINTER TO RECORD END; - b : POINTER TO ARRAY OF INTEGER; - c : PROCEDURE; + a : A; + +PROCEDURE Do; + TYPE + ListPtr = POINTER TO ListNode; + ListNode = RECORD next: ListPtr END; +BEGIN +END Do; BEGIN - a := NIL; - b := NIL; - c := NIL; + NEW(a); + a.B := NIL; END Test.