diff --git a/Test.obn b/Test.obn
index 67a35e4ef616fb5f76e91b2f1cf9a5b60eb0ffbc..b9b14ae66be8abf069ff9c19ca678ff3e117694d 100644 (file)
--- a/Test.obn
+++ b/Test.obn
MODULE Test;
MODULE Test;
-IMPORT Out;
+TYPE
+ Stream* = POINTER TO Handle;
+ Handle = RECORD END;
+
+ Writer* = RECORD END;
+
+ Printer* = RECORD (Writer) END;
+
+VAR
+ s : Stream;
+ o : Writer;
+ out : Printer;
+
+PROCEDURE SetStream(VAR w : Writer; stream : Stream);
+BEGIN
+END SetStream;
BEGIN
BEGIN
- Out.String("A");
- Out.Char("A");
- Out.Ln;
- ASSERT("A" = 041X);
- ASSERT(041X = "A");
- ASSERT(ORD("A") = 041H);
- ASSERT(041H = ORD("A"));
- ASSERT("A" = "A");
+ SetStream(o, s);
+ SetStream(out, s);
END Test.
END Test.