X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=ecfde58b9f0e5fadb5eb6a9a884a62ede7a56351;hb=674b8e806962b40992601aca7f1234103a3aefb0;hp=67a35e4ef616fb5f76e91b2f1cf9a5b60eb0ffbc;hpb=ba1a55241f3841d1254317d76d45322c85fb687b;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 67a35e4..ecfde58 100644 --- a/Test.obn +++ b/Test.obn @@ -1,14 +1,21 @@ MODULE Test; -IMPORT Out; +TYPE + A = POINTER TO RECORD B : B; END; + + B = POINTER TO RECORD x : A END; + +VAR + a : A; + +PROCEDURE Do; + TYPE + ListPtr = POINTER TO ListNode; + ListNode = RECORD next: ListPtr END; +BEGIN +END Do; BEGIN - Out.String("A"); - Out.Char("A"); - Out.Ln; - ASSERT("A" = 041X); - ASSERT(041X = "A"); - ASSERT(ORD("A") = 041H); - ASSERT(041H = ORD("A")); - ASSERT("A" = "A"); + NEW(a); + a.B := NIL; END Test.