summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tobjc30.pp
blob: 0abc62fbef14e985bfbe5cb12d4379f0a3aac1bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ %target=darwin }
{ %cpu=powerpc,powerpc64,i386,x86_64,arm }

{ Written by Jonas Maebe in 2009, released into the Public Domain }

{$mode objfpc}
{$modeswitch objectivec1}

var
  a: id;
begin
  a:=NSObject.alloc.init;
  if a.conformsToProtocol_(objcprotocol(NSObjectProtocol)) then
    writeln('ok conformsToProtocol')
  else
    halt(1);
end.