X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=e0445949bf94c9233425839d2dfd602e22e70243;hb=f4aa48e4c1e3b81ccbe3da5c33fdaba3a46081dd;hp=0b020f71a79862e5a3510e07528b982ea6a21749;hpb=879793eaf1d6378593f78a192f2961670f686530;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 0b020f7..e044594 100644 --- a/Test.obn +++ b/Test.obn @@ -1,11 +1,23 @@ 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.