summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/uobjc27a.pp
blob: f017e1ad507ec3cca4ff98ee03eea21858db75a2 (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
27
28
29
{$mode objfpc}
{$modeswitch objectivec1}

{ Written by Jonas Maebe in 2009, released into the public domain }

unit uobjc27a;

interface

type
  ta = objcclass(NSObject)
  end;

type
  ca = objccategory(ta)
    function ca_categorymethod: longint; message 'ca_categorymethod';
  end;

implementation

uses
  uobjc27b;

function ca.ca_categorymethod: longint;
begin
  result:=da_categorymethod-1;
end;

end.