mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 20:20:26 +02:00
22 lines
356 B
ObjectPascal
22 lines
356 B
ObjectPascal
{$ifdef fpc}{$mode objfpc}{$endif}
|
|
|
|
uses
|
|
sysutils;
|
|
|
|
const
|
|
fname = 'Makefile';
|
|
|
|
ThisDir = '.'+DirectorySeparator;
|
|
var
|
|
fn : string;
|
|
begin
|
|
fn:=FileSearch(fname,PathSeparator);
|
|
writeln('found: ',fn);
|
|
if fn<>fname then
|
|
halt(1);
|
|
fn:=FileSearch(ThisDir+fname,PathSeparator);
|
|
writeln('found: ',fn);
|
|
if fn<>ThisDir+fname then
|
|
halt(1);
|
|
end.
|