summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw3261.pp
blob: 813ef3c585a00e22531bd609b66b07715eebcfb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ %norun }
{ %target=win32,wince }

{ Source provided for Free Pascal Bug Report 3261 }
{ Submitted by "Andreas Hausladen" on  2004-08-18 }
{ e-mail: Andreas.Hausladen@gmx.de }
program test;

{$mode delphi}

type
  TTest = class(TObject)
  public
    procedure myfunc(arg1: Integer; arg2: TTest); overload;
    procedure myfunc(arg1: TTest); overload;
  end;

procedure TTest.myfunc(arg1: Integer; arg2: TTest); external 'test.dll' name 'TTest_myfunc';

procedure TTest.myfunc(arg1: TTest);
begin
  if arg1 = nil then ;
end;

begin
end.