X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=a704f0db4d56d3206461fc18065a9afa32220c0e;hb=9ae75f92f805e23b0b151cf8be18a3fe96935c3b;hp=67132268d6a753e3cfdc990ac2dec0eaed6e1670;hpb=d25fb653bfe19a696d3f53abd784d32ba2d3ee03;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 6713226..a704f0d 100644 --- a/Test.obn +++ b/Test.obn @@ -1,13 +1,23 @@ MODULE Test; -VAR - i : INTEGER; - f : REAL; - d : LONGREAL; + 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; + + CPool = POINTER TO ARRAY OF CPinfo; + + VAR + i : HUGEINT; + cpool : CPool; BEGIN - i := 5 DIV 3; - f := 5 / 3; - d := 5 / 3.0; - d := 5 / 3.0D0; + i := 16; + NEW(cpool, i); END Test.