diff --git a/Test.obn b/Test.obn
index 8c3a8d1458efc80ddf4837c106b664b70a3abfae..ecfde58b9f0e5fadb5eb6a9a884a62ede7a56351 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
-IMPORT Out;
+TYPE
+ A = POINTER TO RECORD B : B; END;
+
+ B = POINTER TO RECORD x : A END;
VAR
- msg : ARRAY 20 OF CHAR;
+ a : A;
+
+PROCEDURE Do;
+ TYPE
+ ListPtr = POINTER TO ListNode;
+ ListNode = RECORD next: ListPtr END;
+BEGIN
+END Do;
BEGIN
- Out.Open;
- COPY("Hello World!", msg);
- Out.String(msg); Out.Ln;
- COPY("Hell!", msg);
- Out.String(msg); Out.Ln;
- COPY("The quick brown fox jumps over the lazy dog", msg);
- Out.String(msg); Out.Ln;
- msg := "Hello World!";
- Out.String(msg); Out.Ln;
+ NEW(a);
+ a.B := NIL;
END Test.