@@ -1,3 +1,7 @@
+{ %OPT=-Sew }
+{ this should generate no warning }
+
+{$mode tp}
Program test;
@@ -0,0 +1,24 @@
+{ %fail }
+{ this should generate a warning
+ because s is not initialized }
+Program test;
+type
+ SimpleProc = Procedure;
+procedure test_provar;
+var x,y:integer;
+ s : SimpleProc;
+begin
+ {y:=5;
+ for x:=0 to 10 do if x<y then writeln(x);}
+ s;
+end;
+end.
+ SimpleProc = function : integer;
+ x:=s;