fpc/tests/tbs/tb0199.pp
2000-11-30 22:38:14 +00:00

21 lines
332 B
ObjectPascal

{ Old file: tbs0235.pp }
{ Val(cardinal) bugs OK 0.99.11 (JM) }
program bug0233;
var s:string;
w:cardinal;
code:word;
begin
s:='192';
val(s,w,code);
if code<>0 then
begin
writeln('Error');
halt(1);
end
else
writeln(w);
end.