@@ -0,0 +1,15 @@
+PROGRAM tbug1092;
+USES Dos;
+const
+{$Ifdef linux}
+ path='/etc';
+{$else}
+ path='c:\';
+{$endif}
+BEGIN
+ if FSearch('tbug1092.pp',path))<>'tbug1092.pp' then
+ begin
+ writeln('FSearch didn''t find file in the current dir!');
+ halt(1);
+ end;
+END.
@@ -0,0 +1,26 @@
+{$H+}
+
+type
+ Tsome = Record
+ One,Two,Three:String;
+Procedure passhere(Some:TSome;onemore:String);
+Begin
+end;
+procedure fromhere;
+Var
+ me:Tsome;
+ me.one:='blah';
+ me.two:='';
+ me.three:='';
+ passhere(Me,'text some');
+begin
+ fromhere;
+end.
@@ -0,0 +1,23 @@
+{$MODE OBJFPC }
+ TestRec = record
+ fString : AnsiString;
+ fInt1 : Longint;
+ fInt2 : Longint;
+ fRetAddr : Longint;
+function GetGroupInfo: TestRec;
+ fillchar(Result, Sizeof(Result), 0);
+ Result.fRetAddr := 0;
+function SelectGroup: TestRec;
+ Result := GetGroupInfo;
+ SelectGroup;