diff --git a/Test.obn b/Test.obn
index f0552a93a06abbaed7841faf482aae3f99251f7f..e0445949bf94c9233425839d2dfd602e22e70243 100644 (file)
--- a/Test.obn
+++ b/Test.obn
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
- i : INTEGER;
+ r : P1;
BEGIN
+ NEW(r);
Out.Open;
- i := 48;
- FOR i := 32 TO i DO
- Out.Int(i, 0); Out.Char(' ');
+ WITH r : P1 DO
+ Out.String("R1"); Out.Ln;
END;
- Out.Ln;
END Test.