tw0769c.pp 309 B

123456789101112131415161718192021222324
  1. { %OPT=-Sew -vw }
  2. { %fail }
  3. { this should generate a warning
  4. because s is not initialized }
  5. {$mode tp}
  6. Program test;
  7. type
  8. SimpleProc = function : integer;
  9. procedure test_provar;
  10. var x,y:integer;
  11. s : SimpleProc;
  12. begin
  13. {y:=5;
  14. for x:=0 to 10 do if x<y then writeln(x);}
  15. x:=s;
  16. end;
  17. begin
  18. end.