X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=Test.obn;h=8889d77c0c50802f40f632397a621a5dba4eaeea;hb=35e75d29be18a7355aaaea9e146f3fda1d91857f;hp=8c3a8d1458efc80ddf4837c106b664b70a3abfae;hpb=9f8036eb00032fa7f756113365cb42e05ab262df;p=dsw-obn.git diff --git a/Test.obn b/Test.obn index 8c3a8d1..8889d77 100644 --- a/Test.obn +++ b/Test.obn @@ -1,18 +1,17 @@ MODULE Test; -IMPORT Out; +TYPE + PRec = POINTER TO Rec; + Rec = RECORD END; VAR - msg : ARRAY 20 OF CHAR; + d : PRec; +PROCEDURE X (z : INTEGER; a : SET; b : ARRAY OF CHAR) : PRec; BEGIN - Out.Open; - COPY("Hello World!", msg); - Out.String(msg); Out.Ln; - COPY("Hell!", msg); - Out.String(msg); Out.Ln; - COPY("The quick brown fox jumps over the lazy dog", msg); - Out.String(msg); Out.Ln; - msg := "Hello World!"; - Out.String(msg); Out.Ln; + RETURN NIL; +END X; + +BEGIN + d := X(1, {}, "xyz"); END Test.