X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=a704f0db4d56d3206461fc18065a9afa32220c0e;hb=9ae75f92f805e23b0b151cf8be18a3fe96935c3b;hp=f4deaccac3d5c739ec23505c314e13b8d333e776;hpb=bc1691627adee054210acf7e801361fa574f8086;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index f4deacc..a704f0d 100644 --- a/Test.obn +++ b/Test.obn @@ -1,17 +1,23 @@ MODULE Test; -IMPORT - Out, - System; + TYPE + CPinfo = RECORD + tag : INTEGER; + index : ARRAY 2 OF LONGINT; + int : LONGINT; + float : REAL; + long : HUGEINT; + double : LONGREAL; + utf8 : POINTER TO ARRAY OF CHAR; + END; -TYPE - RBase = RECORD END; - R = RECORD (RBase) END; + CPool = POINTER TO ARRAY OF CPinfo; + + VAR + i : HUGEINT; + cpool : CPool; BEGIN - Out.Open; - IF FALSE THEN - Out.String("Hello World!"); Out.Ln; - END; - System.Halt(1); + i := 16; + NEW(cpool, i); END Test.