DEADSOFTWARE

Добавлено расширение типа
[dsw-obn.git] / src / test.c
index 2c5fb0462c6cb482a0d66fbd593af3fa4f85f5d8..6a08bce11b82d1454ec2538a53e6e63d426debfa 100644 (file)
@@ -8,25 +8,21 @@ static char source_test[] =
        "(* Main module *)"
        "MODULE Test;"
        "IMPORT Out;"
+       "TYPE"
+       "  Baser = RECORD a : INTEGER; END;"
+       "  R1 = RECORD (Baser)"
+       "    b : R2;"
+       "  END;"
+       "  "
+       "  R2 = RECORD"
+       "    a : POINTER TO R1;"
+       "  END;"
        ""
        "VAR"
-       "  byte     : BYTE;"
-       "  short    : SHORTINT;"
-       "  int      : INTEGER;"
-       "  long     : LONGINT;"
-       "  real     : REAL;"
-       "  longreal : LONGREAL;"
+       "  r : R1;"
        ""
        "BEGIN"
-       "  Out.Open;"
-       "  byte := 127;"
-       "  int := 666;"
-       "  long := int;"
-       "  real := int;"
-       "  longreal := int;"
-       "  Out.Int(666, 0); Out.Ln;"
-       "  Out.Int(byte, 0); Out.Ln;"
-       "  Out.LongReal(real, 0); Out.Ln;"
+       "  r.a := 1;"
        "END Test."
 ;