summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tobjc14.pp
blob: cd80d1e382edc62cac2ea8d77d5a4ab3f767e072 (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
{ %OPT=-Sew -vw }
{ %target=darwin }
{ %cpu=powerpc,powerpc64,i386,x86_64,arm }
{ %norun }

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

{$mode objfpc}
{$modeswitch objectivec1}

{ test forward-declared objcprotocol }
{ make sure no warning is given about the absense of any constructors }

type
  ta = objcprotocol;

  tb = objcclass external name 'NSObject'
    a: ta;
  end;

  ta = objcprotocol external name 'NSObject'
  end; 

begin
end.