Browse Source

* fixed runtime check

peter 22 years ago
parent
commit
320f624c4a
1 changed files with 10 additions and 2 deletions
  1. 10 2
      tests/webtbs/tw2046.pp

+ 10 - 2
tests/webtbs/tw2046.pp

@@ -12,11 +12,19 @@ const
   libc='c';
   libc='c';
 {$endif}
 {$endif}
 
 
-procedure printf(fm: pchar; args: array of const); cdecl; external libc;
+procedure sprintf(a, fm: pchar; args: array of const); cdecl; external libc;
 
 
 procedure print(args: array of const);
 procedure print(args: array of const);
+var
+  a : array[0..255] of char;
 begin
 begin
-  printf('a number %i'#13#10,args);
+  sprintf(a,'a number %i',args);
+  writeln(a);
+  if a<>'a number 3333' then
+   begin
+     writeln('Error!');
+     halt(1);
+   end;
 end;
 end;
 
 
 begin
 begin