@@ -0,0 +1,27 @@
+{$ifdef fpc}{$mode delphi}{$endif}
+
+{ These should give an error, as also done in tp,delphi.
+ See tbs0319.pp for a test with class which should compile in
+ delphi mode }
+type
+ cl=object
+ k : longint;
+ procedure p1;
+ procedure p2;
+ end;
+procedure cl.p1;
+var
+begin
+end;
+procedure cl.p2;
+ p1 : longint;
+end.
@@ -0,0 +1,30 @@
+function a:longint;
+ a : longint;
+ a:=1;
+ cl=class