fpc/tests/test/tobjc27a.pp
Jonas Maebe c6daaa28d0 * enable all Objective-C tests for Darwin/AArch64
git-svn-id: trunk@29945 -
2015-02-23 22:54:24 +00:00

29 lines
476 B
ObjectPascal

{ %target=darwin }
{ %cpu=powerpc,powerpc64,i386,x86_64,arm,aarch64 }
{ %recompile }
{ Written by Jonas Maebe in 2009, released into the public domain }
{$modeswitch objectivec1}
uses
uobjc27a,uobjc27b;
var
a: ta;
c: tachild;
begin
a:=ta(ta.alloc).init;
if a.da_categorymethod<>2 then
halt(1);
a.release;
c:=tachild(tachild.alloc).init;
if c.da_categorymethod<>2 then
halt(2);
if c.eachild_categorymethod<>3 then
halt(3);
c.release;
end.