X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=Test.obn;h=ea2d143a6b9a4cd952a1d30505f5ff09d90616ea;hp=b80d7a15c3a490308c7b343ab2843e710f22efde;hb=HEAD;hpb=49ad3c76fc9656759aab23d9034ebc33f8d8bd9d diff --git a/Test.obn b/Test.obn index b80d7a1..ea2d143 100644 --- a/Test.obn +++ b/Test.obn @@ -1,22 +1,17 @@ MODULE Test; -TYPE - R1 = RECORD END; - R2 = RECORD (R1) END; - R3 = RECORD END; + VAR + x : INTEGER; + p : PROCEDURE; - P1 = POINTER TO R1; - P2 = POINTER TO R2; - -VAR - a : R1; - b : R2; - c : R3; - p1 : P1; - p2 : P2; + PROCEDURE X; + BEGIN + x := 1; + x := 2; + x := 3; + p + END X; BEGIN - a := b; - p2 := p1(P2); - p1 := p2(P2); + X; END Test.