X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest.c;h=7a449d63c16f129c4fd450d3b537d2d5240bd7fc;hb=5eab721345c3e472bbfbb97645729069b0b6bb40;hp=2c5fb0462c6cb482a0d66fbd593af3fa4f85f5d8;hpb=25b73915e7fe0ae7dc51cf6f4a012f021257a35d;p=dsw-obn.git diff --git a/src/test.c b/src/test.c index 2c5fb04..7a449d6 100644 --- a/src/test.c +++ b/src/test.c @@ -8,25 +8,24 @@ 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;" + " baser : Baser;" + " r : R1;" + " inv : R2;" "" "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;" + " baser := r(Baser);" "END Test." ;