diff --git a/Test.obn b/Test.obn
index e0445949bf94c9233425839d2dfd602e22e70243..be037a255a86681dfd6dde8cb1ddea47041586bf 100644 (file)
--- a/Test.obn
+++ b/Test.obn
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;
+ PC = ARRAY 3 OF PB;
+
+ B = RECORD z : PC; next : PB END;
-VAR
- r : P1;
+ PB = POINTER TO B;
-BEGIN
- NEW(r);
- Out.Open;
- WITH r : P1 DO
- Out.String("R1"); Out.Ln;
- END;
END Test.