diff --git a/Test.obn b/Test.obn
index 0b020f71a79862e5a3510e07528b982ea6a21749..e0445949bf94c9233425839d2dfd602e22e70243 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
-IMPORT
- Out,
- System;
+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
+ r : P1;
BEGIN
+ NEW(r);
Out.Open;
- Out.String("Hello World!"); Out.Ln;
- System.Halt(1);
+ WITH r : P1 DO
+ Out.String("R1"); Out.Ln;
+ END;
END Test.