X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Ftest.c;h=059af717a19c98da40c7ebade7168065ce8a2f9c;hb=a4fb30372d14e8415e2f9b8e647c20daeab59d7d;hp=bcc8e86c8fe1c3a607d1d235ef29bd3d92c62820;hpb=e9b64944925eadc5022edfee26281a4814fd9124;p=dsw-obn.git diff --git a/src/test.c b/src/test.c index bcc8e86..059af71 100644 --- a/src/test.c +++ b/src/test.c @@ -13,17 +13,12 @@ static char source_test[] = " i : INTEGER;" "" "BEGIN" - " i := 4;" + " i := 0;" " Out.Open();" - " IF i = 0 THEN" - " Out.String('Branch 0'); Out.Ln;" - " ELSIF i = 1 THEN" - " Out.String('Branch 1'); Out.Ln;" - " ELSIF i = 2 THEN" - " Out.String('Branch 2'); Out.Ln;" - " ELSE" - " Out.String('Branch else'); Out.Ln;" - " END;" + " REPEAT" + " Out.String('Count '); Out.Int(i, 0); Out.Ln;" + " i := i + 1;" + " UNTIL i < 4;" " Out.String('end'); Out.Ln;" "END Test." ;