diff --git a/Test.obn b/Test.obn
index 03df037492a62bec8642dbd45bd9a5ec5f2cc689..b9b14ae66be8abf069ff9c19ca678ff3e117694d 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
+TYPE
+ Stream* = POINTER TO Handle;
+ Handle = RECORD END;
+
+ Writer* = RECORD END;
+
+ Printer* = RECORD (Writer) END;
+
VAR
- x : ARRAY 10 OF INTEGER;
- p : POINTER TO ARRAY OF ARRAY OF INTEGER;
+ s : Stream;
+ o : Writer;
+ out : Printer;
+
+PROCEDURE SetStream(VAR w : Writer; stream : Stream);
+BEGIN
+END SetStream;
BEGIN
- NEW(p, 20, 30);
- ASSERT(LEN(x, 0) = 10);
- ASSERT(LEN(p^, 0) = 20);
- ASSERT(LEN(p^, 1) = 30);
+ SetStream(o, s);
+ SetStream(out, s);
END Test.