X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=src%2Ftest.c;h=d2950b968189c70a5f4b743c5131cd9682498959;hp=03ac7fc3ab12979d8fcaadac8c5ccd244769f4bc;hb=ee7fd939ac99201466900fb3983aa90b980da5c3;hpb=36c1947b3e98abab25f16a0f1c2679125651fe95 diff --git a/src/test.c b/src/test.c index 03ac7fc..d2950b9 100644 --- a/src/test.c +++ b/src/test.c @@ -22,12 +22,14 @@ static char source_test[] = "" "TYPE" " Ident = ARRAY 20 OF CHAR;" + " PrintString = PROCEDURE (str : ARRAY OF CHAR);" "" "VAR" " hello : Ident;" - " cc : CHAR;" + " print : PrintString;" "" "BEGIN" + " print := Out.String;" " hello[0] := h;" " hello[1] := e;" " hello[2] := l;" @@ -42,7 +44,7 @@ static char source_test[] = " hello[11] := bang;" " hello[12] := null;" " Out.Open;" - " Out.String(hello);" + " print(hello);" " Out.Ln;" "END Test." ;