DEADSOFTWARE

Поправлены объявления типов наперёд
[dsw-obn.git] / Test.obn
index 8c3a8d1458efc80ddf4837c106b664b70a3abfae..be037a255a86681dfd6dde8cb1ddea47041586bf 100644 (file)
--- a/Test.obn
+++ b/Test.obn
@@ -1,18 +1,11 @@
 MODULE Test;
 
-IMPORT Out;
+TYPE
 
-VAR
-  msg : ARRAY 20 OF CHAR;
+  PC = ARRAY 3 OF PB;
+
+  B = RECORD z : PC; next : PB END;
+
+  PB = POINTER TO B;
 
-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;
 END Test.